org.apache.lucene.facet.example.adaptive
Class AdaptiveSearcher

java.lang.Object
  extended by org.apache.lucene.facet.example.adaptive.AdaptiveSearcher

public class AdaptiveSearcher
extends Object

Search with facets through the AdaptiveFacetsAccumulator

WARNING: This API is experimental and might change in incompatible ways in the next release.

Constructor Summary
AdaptiveSearcher()
           
 
Method Summary
static List<FacetResult> searchWithFacets(org.apache.lucene.store.Directory indexDir, org.apache.lucene.store.Directory taxoDir)
          Search with facets through the AdaptiveFacetsAccumulator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptiveSearcher

public AdaptiveSearcher()
Method Detail

searchWithFacets

public static List<FacetResult> searchWithFacets(org.apache.lucene.store.Directory indexDir,
                                                 org.apache.lucene.store.Directory taxoDir)
                                          throws Exception
Search with facets through the AdaptiveFacetsAccumulator

Parameters:
indexDir - Directory of the search index.
taxoDir - Directory of the taxonomy index.
Returns:
facet results
Throws:
Exception - on error (no detailed exception handling here for sample simplicity


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.