Class ElasticsearchSearchServiceFactory
java.lang.Object
org.alfresco.repo.search.impl.AbstractIndexerAndSearcher
org.alfresco.repo.search.impl.elasticsearch.ElasticsearchSearchServiceFactory
- All Implemented Interfaces:
IndexerAndSearcher
Factory for Indexer and Searcher instances for Elasticsearch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Do any indexing that may be pending on behalf of the current transaction.getIndexer(StoreRef storeRef) Elasticsearch is indexing the repository by polling database or listening queue messages from an external service, so no Indexer is available for the Repository.getSearcher(StoreRef storeRef, boolean searchDelta) Get a searcher for a storevoidsetDictionaryService(DictionaryService dictionaryService) voidsetNodeService(NodeService nodeService) voidsetQueryRegister(QueryRegisterComponent queryRegister) Methods inherited from class org.alfresco.repo.search.impl.AbstractIndexerAndSearcher
getQueryLanguages, registerQueryLanguage
-
Constructor Details
-
ElasticsearchSearchServiceFactory
public ElasticsearchSearchServiceFactory()
-
-
Method Details
-
getIndexer
Elasticsearch is indexing the repository by polling database or listening queue messages from an external service, so no Indexer is available for the Repository.- Parameters:
storeRef- StoreRef- Returns:
- Indexer
- Throws:
IndexerException
-
getSearcher
Description copied from interface:IndexerAndSearcherGet 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
public void flush()Description copied from interface:IndexerAndSearcherDo any indexing that may be pending on behalf of the current transaction. -
setQueryRegister
-
setNodeService
-
setDictionaryService
-