org.apache.lucene.facet.search
Class DepthOneFacetResultsHandler
java.lang.Object
org.apache.lucene.facet.search.FacetResultsHandler
org.apache.lucene.facet.search.DepthOneFacetResultsHandler
public class DepthOneFacetResultsHandler
- extends FacetResultsHandler
A FacetResultsHandler
which counts the top-K facets at depth 1 only
and always labels all result categories. The results are always sorted by
value, in descending order.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DepthOneFacetResultsHandler
public DepthOneFacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
FacetArrays facetArrays,
OrdinalValueResolver resolver)
compute
public final FacetResult compute()
throws IOException
- Description copied from class:
FacetResultsHandler
- Computes the
FacetResult
for the given FacetArrays
.
- Specified by:
compute
in class FacetResultsHandler
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.