org.apache.jetspeed.search
Interface SearchEngine


public interface SearchEngine

Version:
$Id: SearchEngine.java 967312 2010-07-24 00:13:19Z woonsan $
Author:
Jeremy Ford

Method Summary
 boolean add(java.util.Collection objects)
          Adds search index documents for the argument object collection.
 boolean add(java.lang.Object o)
          Adds search index document for the argument object.
 boolean optimize()
          Requests optimization
 boolean remove(java.util.Collection objects)
          Removes search index documents for the argument object collection.
 boolean remove(java.lang.Object o)
          Removes search index document for the argument object.
 SearchResults search(java.lang.String query)
          Searches documents by the query.
 SearchResults search(java.lang.String query, java.lang.String defaultFieldName)
          Searches documents by the query against the default field name.
 SearchResults search(java.lang.String query, java.lang.String defaultFieldName, int topHitsCount)
          Searches documents by the query against the default field name.
 boolean update(java.util.Collection objects)
          Updates the search index documents for the argument object collection.
 boolean update(java.lang.Object o)
          Updates the search index document for the argument object.
 

Method Detail

add

boolean add(java.lang.Object o)
Adds search index document for the argument object. An object handler for the object type is responsible for parsing.

Note: Normally, it is more efficient to invoke add(Collection).

Parameters:
o -
Returns:
See Also:
org.apache.jetspeed.search.ObjectHandler}, org.apache.jetspeed.search.ParsedObject}

add

boolean add(java.util.Collection objects)
Adds search index documents for the argument object collection. Each object handler for the object type of each item is responsible for parsing.

Parameters:
objects -
Returns:

remove

boolean remove(java.lang.Object o)
Removes search index document for the argument object. An object handler for the object type is responsible for parsing.

Note: Normally, it is more efficient to invoke remove(Collection).

Parameters:
o -
Returns:

remove

boolean remove(java.util.Collection objects)
Removes search index documents for the argument object collection. Each object handler for the object type of each item is responsible for parsing.

Parameters:
objects -
Returns:

update

boolean update(java.lang.Object o)
Updates the search index document for the argument object. An object handler for the object type is responsible for parsing.

Note: Normally, it is more efficient to invoke update(Collection).

Parameters:
o -
Returns:

update

boolean update(java.util.Collection objects)
Updates the search index documents for the argument object collection. Each object handler for the object type of each item is responsible for parsing.

Parameters:
objects -
Returns:

optimize

boolean optimize()
Requests optimization

Returns:

search

SearchResults search(java.lang.String query)
Searches documents by the query. The default field name and the default top hits count can be used in a specific implementation.

Parameters:
query -
Returns:

search

SearchResults search(java.lang.String query,
                     java.lang.String defaultFieldName)
Searches documents by the query against the default field name. The default top hits count can be used in a specific implementation.

Parameters:
query -
defaultFieldName -
Returns:

search

SearchResults search(java.lang.String query,
                     java.lang.String defaultFieldName,
                     int topHitsCount)
Searches documents by the query against the default field name. The returned item count will not be more than topHitsCount.

Parameters:
query -
defaultFieldName -
topHitsCount -
Returns:


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.