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 Details

    • 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 - 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

      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