org.apache.lucene.facet.associations
public class SumFloatAssociationFacetRequest extends FacetRequest
FacetRequest for weighting facets according to their float
association by summing the association values.FacetRequest.ResultMode, FacetRequest.SortOrdercategoryPath, numResults| Constructor and Description |
|---|
SumFloatAssociationFacetRequest(CategoryPath path,
int num)
Create a float association facet request for a given node in the
taxonomy.
|
| Modifier and Type | Method and Description |
|---|---|
FacetsAggregator |
createFacetsAggregator(FacetIndexingParams fip)
Returns the
FacetsAggregator which can aggregate the categories of
this facet request. |
equals, getDepth, getNumLabel, getResultMode, getSortOrder, hashCode, setDepth, setNumLabel, setResultMode, setSortOrder, toStringpublic SumFloatAssociationFacetRequest(CategoryPath path, int num)
public FacetsAggregator createFacetsAggregator(FacetIndexingParams fip)
FacetRequestFacetsAggregator which can aggregate the categories of
this facet request. The aggregator is expected to aggregate category values
into FacetArrays. If the facet request does not support that, e.g.
RangeFacetRequest, it can return null. Note though that
such requests require a dedicated FacetsAccumulator.createFacetsAggregator in class FacetRequestCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.