public interface FileSearchEngine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
void |
add(FileDocument fileDocument)
Method to implement to index
FileDocument into the search engine. |
void |
delete(FileDocument fileDocument)
Method to implement to delete
FileDocument from the search engine. |
int |
getFileCount() |
boolean |
isAvailable() |
java.util.LinkedHashMap<java.lang.String,java.lang.Float> |
search(QueryHandler qh)
Return the list of publication's identifier with a lucene search.
|
boolean |
search(QueryHandler qh,
java.util.HashSet<? extends Publication> pubSet,
QueryResultSet resultSet,
boolean searchInDB)
Perform a full-text search on indexed files
|
java.util.LinkedHashMap<java.lang.String,java.lang.Float> |
search(QueryHandler qh,
java.util.List<java.lang.String> idList)
Filters the given list of publication's identifier with a lucene search.
|
void |
update(FileDocument fileDocument)
Method to implement to update
FileDocument in the search engine. |
static final java.lang.String REVISION
boolean search(QueryHandler qh, java.util.HashSet<? extends Publication> pubSet, QueryResultSet resultSet, boolean searchInDB)
qh
- the Queryhandler in which to find search text and search options.pubSet
- a HashSet containing all the Publication
to search. Publication
found will be returned. resultSet
- the QueryResultSet
that must be filled
with matching Publication
searchInDB
- if false, only JStore publication are set in pubSetjava.util.LinkedHashMap<java.lang.String,java.lang.Float> search(QueryHandler qh, java.util.List<java.lang.String> idList)
qh
- the Queryhandler in which to find search text and search options.idList
- the list of publication's identifieridList
and respect its order.java.util.LinkedHashMap<java.lang.String,java.lang.Float> search(QueryHandler qh)
qh
- the Queryhandler in which to find search text and search options.int getFileCount()
boolean isAvailable()
void add(FileDocument fileDocument)
FileDocument
into the search engine.fileDocument
- the FileDocument
to index .void update(FileDocument fileDocument)
FileDocument
in the search engine.fileDocument
- the FileDocument
to reindex .void delete(FileDocument fileDocument)
FileDocument
from the search engine.fileDocument
- the FileDocument
to delete from index .Copyright © 2001-2010 Jalios SA. All Rights Reserved.