org.apache.jetspeed.services.search
Class Search

java.lang.Object
  extended byorg.apache.jetspeed.services.search.Search

public abstract class Search
extends java.lang.Object

Static accessor for the SearchService

Version:
$Id: Search.java,v 1.6 2004/07/15 00:14:12 jford Exp $
Author:
Paul Spencer

Constructor Summary
Search()
           
 
Method Summary
static boolean add(java.util.Collection c)
           
static boolean add(java.lang.Object o)
           
 boolean addDirectory(java.lang.String path, java.lang.String extension)
           
protected static SearchService getService()
          Utility method for accessing the service implementation
static boolean optimize()
           
static boolean remove(java.util.Collection c)
           
static boolean remove(java.lang.Object o)
           
static SearchResults search(java.lang.String searchString)
          Search the default index
static boolean update(java.util.Collection c)
           
static boolean update(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Search

public Search()
Method Detail

getService

protected static SearchService getService()
Utility method for accessing the service implementation

Returns:
a SearchServiceimplementation instance

search

public static SearchResults search(java.lang.String searchString)
Search the default index

Parameters:
searchString - to use
Returns:
Hits

remove

public static boolean remove(java.lang.Object o)
Parameters:
o -
Returns:

remove

public static boolean remove(java.util.Collection c)
Parameters:
c -
Returns:

add

public static boolean add(java.lang.Object o)
Parameters:
o -
Returns:

add

public static boolean add(java.util.Collection c)
Parameters:
c -
Returns:

update

public static boolean update(java.lang.Object o)
Parameters:
o -
Returns:

update

public static boolean update(java.util.Collection c)
Parameters:
c -
Returns:

addDirectory

public boolean addDirectory(java.lang.String path,
                            java.lang.String extension)
Parameters:
path -
extension -
Returns:

optimize

public static boolean optimize()
Returns:


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.