|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PublicationSearchEngine
This interface must be implemented by publication search engines (indexer and searcher) such as LuceneSearchEngine.
| Field Summary | |
|---|---|
static java.lang.String |
REVISION
|
| Method Summary | |
|---|---|
void |
add(java.util.Collection<? extends Publication> coll)
Method to implement to index a Collection of Publication into the search engine. |
void |
add(Publication pub)
Method to implement to index Publication into the search engine. |
void |
clearAll()
Method to implement to clear all Publication from the search engine. |
void |
delete(java.util.Collection<? extends Publication> coll)
Method to implement to delete a Collection of Publication from the search engine. |
void |
delete(Publication pub)
Method to implement to delete Publication from the search engine. |
java.util.Date |
getIndexingDate(Publication pub)
Method to implement to retrieve the Date at which the specified Publication was indexed in the search engine. |
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)
Perform a full-text search. |
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(java.util.Collection<? extends Publication> coll)
Method to implement to update Collection of Publication in the search engine. |
void |
update(Publication pub)
Method to implement to update Publication in the search engine. |
| Field Detail |
|---|
static final java.lang.String REVISION
| Method Detail |
|---|
void add(Publication pub)
Publication into the search engine.
pub - the Publication to index .void update(Publication pub)
Publication in the search engine.
pub - the Publication to reindex .void delete(Publication pub)
Publication from the search engine.
pub - the Publication to reindex .void add(java.util.Collection<? extends Publication> coll)
Collection of Publication into the search engine.
coll - the Collection of Publication to index .void update(java.util.Collection<? extends Publication> coll)
Collection of Publication in the search engine.
coll - the Collection of Publication to reindex .void delete(java.util.Collection<? extends Publication> coll)
Collection of Publication from the search engine.
coll - the Collection of Publication to reindex .java.util.Date getIndexingDate(Publication pub)
pub - the Publication for which to retrieve the indexing date.
void clearAll()
boolean search(QueryHandler qh,
java.util.HashSet<? extends Publication> pubSet,
QueryResultSet resultSet)
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
java.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 identifier
idList 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||