Interface LuceneFacetHelper

All Superinterfaces:
BusinessObject, BusinessProcessor
All Known Implementing Classes:
BasicLuceneFacetHelper

public interface LuceneFacetHelper extends BusinessProcessor
Interface for classes that search on the Lucene index for facets. When the application needs to create an instance that implements LuceneFacetSearcher, BusinessObjectFactory finds the name of the Java class to instantiate from the "luceneFacetSearcherImplementer" setting in the appComponents.properties file.

The default "luceneFacetHelperImplementer" is BasicLuceneFacetHelper.

Author:
David Tobey
  • Field Details

  • Method Details

    • createFacetsBooleanQuery

      org.apache.lucene.search.BooleanQuery createFacetsBooleanQuery(String[] facets)
    • performFacetSearch

      Collection performFacetSearch(org.apache.lucene.search.Query mainQuery, SearchList searchList, org.apache.lucene.search.IndexSearcher searcher) throws Exception
      Throws:
      Exception
    • createFacetsCollector

      org.apache.lucene.facet.search.FacetsCollector createFacetsCollector(SearchList searchList) throws Exception
      Throws:
      Exception
    • loadFacetCategoriesAndManufacturers

      SearchList loadFacetCategoriesAndManufacturers(SearchList searchList) throws Exception
      Throws:
      Exception
    • loadFacetManufacturersFromDatabase

      Map loadFacetManufacturersFromDatabase(Collection facetResultCollection) throws Exception
      Throws:
      Exception
    • logFacetResults

      void logFacetResults(Collection facetResultCollection)
    • simplifyFacetResults

      Collection simplifyFacetResults(Collection facetResults)
    • simplifyFacetResultsAsMap

      Map simplifyFacetResultsAsMap(Collection facetResults)