Class ElasticsearchSearchServiceFactory

java.lang.Object
org.alfresco.repo.search.impl.AbstractIndexerAndSearcher
org.alfresco.repo.search.impl.elasticsearch.ElasticsearchSearchServiceFactory
All Implemented Interfaces:
IndexerAndSearcher

public class ElasticsearchSearchServiceFactory extends AbstractIndexerAndSearcher
Factory for Indexer and Searcher instances for Elasticsearch
  • Constructor Details

    • ElasticsearchSearchServiceFactory

      public ElasticsearchSearchServiceFactory()
  • Method Details

    • getIndexer

      public Indexer getIndexer(StoreRef storeRef) throws IndexerException
      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

      public SearchService getSearcher(StoreRef storeRef, boolean searchDelta) throws SearcherException
      Description copied from interface: IndexerAndSearcher
      Get a searcher for a store
      Parameters:
      storeRef - StoreRef
      searchDelta - - 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: IndexerAndSearcher
      Do any indexing that may be pending on behalf of the current transaction.
    • setQueryRegister

      public void setQueryRegister(QueryRegisterComponent queryRegister)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)