Class BasicLuceneSuggestionsIndexer

All Implemented Interfaces:
BusinessObject, BusinessProcessor, LuceneSuggestionsIndexer

public class BasicLuceneSuggestionsIndexer extends BaseLuceneProcessor implements LuceneSuggestionsIndexer
Class responsible for creating the Lucene Suggestions index for advanced search functionality.
Author:
David Tobey
  • Field Details

    • log

      static org.apache.commons.logging.Log log
    • suggestionsWriter

      private org.apache.lucene.index.IndexWriter suggestionsWriter
    • newIndexSubdirectory

      public static final String newIndexSubdirectory
      See Also:
    • oldIndexSubdirectory

      public static final String oldIndexSubdirectory
      See Also:
  • Constructor Details

    • BasicLuceneSuggestionsIndexer

      public BasicLuceneSuggestionsIndexer()
  • Method Details

    • reindex

      public Map reindex(Map parameters) throws Exception
      Specified by:
      reindex in interface LuceneSuggestionsIndexer
      Throws:
      Exception
    • initSuggestionsWriter

      public org.apache.lucene.index.IndexWriter initSuggestionsWriter(File indexDir, boolean resetIndex) throws Exception
      Throws:
      Exception
    • addAllProducts

      public Map addAllProducts(org.apache.lucene.index.IndexWriter suggestionsWriter) throws Exception
      Throws:
      Exception
    • indexProductSuggestion

      public org.apache.lucene.document.Document indexProductSuggestion(Product product) throws Exception
      Throws:
      Exception
    • addAllCategories

      public Map addAllCategories(org.apache.lucene.index.IndexWriter suggestionsWriter) throws Exception
      Throws:
      Exception
    • indexCategorySuggestion

      public org.apache.lucene.document.Document indexCategorySuggestion(Category category) throws Exception
      Throws:
      Exception
    • addAllManufacturers

      public Map addAllManufacturers(org.apache.lucene.index.IndexWriter suggestionsWriter) throws Exception
      Throws:
      Exception
    • indexManufacturerSuggestion

      public org.apache.lucene.document.Document indexManufacturerSuggestion(Manufacturer manufacturer) throws Exception
      Throws:
      Exception