Package org.alfresco.repo.search
Interface IndexerAndSearcher
-
- All Known Subinterfaces:
LuceneIndexerAndSearcher
- All Known Implementing Classes:
AbstractIndexerAndSearcher,AbstractLuceneIndexerAndSearcherFactory,NoIndexIndexerAndSearcherFactory,SolrIndexerAndSearcherFactory
public interface IndexerAndSearcherInterface for Indexer and Searcher Factories to implement- Author:
- andyh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Do any indexing that may be pending on behalf of the current transaction.IndexergetIndexer(StoreRef storeRef)Get an indexer for a storeMap<String,LuceneQueryLanguageSPI>getQueryLanguages()SearchServicegetSearcher(StoreRef storeRef, boolean searchDelta)Get a searcher for a storevoidregisterQueryLanguage(LuceneQueryLanguageSPI luceneQueryLanguageSPI)
-
-
-
Method Detail
-
getIndexer
Indexer getIndexer(StoreRef storeRef) throws IndexerException
Get an indexer for a store- Parameters:
storeRef- StoreRef- Returns:
- Indexer
- Throws:
IndexerException
-
getSearcher
SearchService getSearcher(StoreRef storeRef, boolean searchDelta) throws SearcherException
Get a searcher for a store- Parameters:
storeRef- StoreRefsearchDelta- - serach the in progress transaction as well as the main index (this is ignored for searches that do full text)- Returns:
- SearchService
- Throws:
SearcherException
-
flush
void flush()
Do any indexing that may be pending on behalf of the current transaction.
-
registerQueryLanguage
void registerQueryLanguage(LuceneQueryLanguageSPI luceneQueryLanguageSPI)
- Parameters:
luceneQueryLanguageSPI- LuceneQueryLanguageSPI
-
getQueryLanguages
Map<String,LuceneQueryLanguageSPI> getQueryLanguages()
- Returns:
- Map
-
-