public interface SearchEngine
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Collection objects)
Adds search index documents for the argument object collection.
|
boolean |
add(Object o)
Adds search index document for the argument object.
|
void |
indexDirectory(String directory)
Index a directory of files
Recursively index contents of a directory
|
boolean |
optimize()
Requests optimization
|
boolean |
remove(Collection objects)
Removes search index documents for the argument object collection.
|
boolean |
remove(Object o)
Removes search index document for the argument object.
|
SearchResults |
search(String query)
Searches documents by the query.
|
SearchResults |
search(String query,
String defaultFieldName)
Searches documents by the query against the default field name.
|
SearchResults |
search(String query,
String defaultFieldName,
int topHitsCount)
Searches documents by the query against the default field name.
|
boolean |
update(Collection objects)
Updates the search index documents for the argument object collection.
|
boolean |
update(Object o)
Updates the search index document for the argument object.
|
boolean add(Object o)
Note: Normally, it is more efficient to invoke add(Collection).
o - org.apache.jetspeed.search.ObjectHandler},
org.apache.jetspeed.search.ParsedObject}boolean add(Collection objects)
objects - boolean remove(Object o)
Note: Normally, it is more efficient to invoke remove(Collection).
o - boolean remove(Collection objects)
objects - boolean update(Object o)
Note: Normally, it is more efficient to invoke update(Collection).
o - boolean update(Collection objects)
objects - boolean optimize()
SearchResults search(String query)
query - SearchResults search(String query, String defaultFieldName)
query - defaultFieldName - SearchResults search(String query, String defaultFieldName, int topHitsCount)
query - defaultFieldName - topHitsCount - void indexDirectory(String directory) throws IOException
IOExceptionCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.