Package com.jalios.jcms.search
Interface CategorySearchEngine
- All Known Implementing Classes:
LuceneCategorySearchEngine
public interface CategorySearchEngine
This interface must be implemented by category search engines (indexer and searcher)
such as LuceneCategorySearchEngine.
- Since:
- jcms-5.5.0
- Author:
- Olivier Jaquemet
-
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to implement to indexCategoryinto the search engine.voidadd(Collection<Category> coll) Method to implement to index aCollectionofCategoryinto the search engine.voidMethod to implement to deleteCategoryfrom the search engine.voiddelete(Collection<Category> coll) Method to implement to delete aCollectionofCategoryfrom the search engine.getIndexingDate(Category cat) Method to implement to retrieve the Date at which the specified Category was indexed in the search engine.booleansearch(QueryHandler qh, HashSet<? extends Publication> pubSet, QueryResultSet resultSet) Perform a full-text search.voidMethod to implement to updateCategoryin the search engine.voidupdate(Collection<Category> coll) Method to implement to updateCollectionofCategoryin the search engine.
-
Method Details
-
add
Method to implement to indexCategoryinto the search engine.- Parameters:
cat- theCategoryto index .- Since:
- jcms-5.5.0
-
update
Method to implement to updateCategoryin the search engine.- Parameters:
cat- theCategoryto reindex .- Since:
- jcms-5.5.0
-
delete
Method to implement to deleteCategoryfrom the search engine.- Parameters:
cat- theCategoryto reindex .- Since:
- jcms-5.5.0
-
add
Method to implement to index aCollectionofCategoryinto the search engine.- Parameters:
coll- theCollectionofCategoryto index .- Since:
- jcms-5.5.0
-
update
Method to implement to updateCollectionofCategoryin the search engine.- Parameters:
coll- theCollectionofCategoryto reindex .- Since:
- jcms-5.5.0
-
delete
Method to implement to delete aCollectionofCategoryfrom the search engine.- Parameters:
coll- theCollectionofCategoryto reindex .- Since:
- jcms-5.5.0
-
getIndexingDate
Method to implement to retrieve the Date at which the specified Category was indexed in the search engine.- Parameters:
cat- theCategoryfor which to retrieve the indexing date.- Returns:
- the indexing date of the category or null if was not indexed.
- Since:
- jcms-6.0.1
-
search
Perform a full-text search.- Parameters:
qh- the Queryhandler in which to find search text and search options.pubSet- a HashSet containing all thePublicationto search.
if empty, search is not performed at all.
if null, allPublicationfound will be returned.
This set MUST NOT be modified by implementation.resultSet- theQueryResultSetthat must be filled with matchingPublication- Returns:
- true if a search was performed in the CategorySearchEngine. Useful to differenciate a query returning zero result from a query not performed due to missing paramerters (text for example).
- Since:
- jcms-5.5.0
-