Package org.alfresco.repo.search
Interface IndexerAndSearcher
- All Known Subinterfaces:
LuceneIndexerAndSearcher
- All Known Implementing Classes:
AbstractIndexerAndSearcher,NoIndexIndexerAndSearcherFactory,SolrIndexerAndSearcherFactory
public interface IndexerAndSearcher
Interface for Indexer and Searcher Factories to implement
- Author:
- andyh
-
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Do any indexing that may be pending on behalf of the current transaction.getIndexer(StoreRef storeRef) Get an indexer for a storegetSearcher(StoreRef storeRef, boolean searchDelta) Get a searcher for a storevoidregisterQueryLanguage(LuceneQueryLanguageSPI luceneQueryLanguageSPI)
-
Method Details
-
getIndexer
Get an indexer for a store- Parameters:
storeRef- StoreRef- Returns:
- Indexer
- Throws:
IndexerException
-
getSearcher
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
- Parameters:
luceneQueryLanguageSPI- LuceneQueryLanguageSPI
-
getQueryLanguages
Map<String,LuceneQueryLanguageSPI> getQueryLanguages()- Returns:
- Map
-