|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileSearchEngine
This interface must be implemented by file search engines such as LuceneFileSearchEngine.
| Field Summary | |
|---|---|
static String |
REVISION
|
| Method Summary | |
|---|---|
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()
|
LinkedHashMap<String,Float> |
search(QueryHandler qh)
Return the list of publication's identifier with a lucene search. |
boolean |
search(QueryHandler qh,
HashSet<? extends Publication> pubSet,
QueryResultSet resultSet,
boolean searchInDB)
Perform a full-text search on indexed files |
LinkedHashMap<String,Float> |
search(QueryHandler qh,
List<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. |
| Field Detail |
|---|
static final String REVISION
| Method Detail |
|---|
boolean search(QueryHandler qh,
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 PublicationsearchInDB - if false, only JStore publication are set in pubSet
LinkedHashMap<String,Float> search(QueryHandler qh,
List<String> idList)
qh - the Queryhandler in which to find search text and search options.idList - the list of publication's identifier
idList and respect its order.LinkedHashMap<String,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 .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||