org.apache.lucene.facet.sortedset
public class SortedSetDocValuesFacetFields extends FacetFields
SortedSetDocValuesAccumulator
to count facets
at search time. Note that this only supports flat
facets (dimension + label). Instantiate this class
once, and then call addFields(org.apache.lucene.document.Document, java.lang.Iterable)
to add the
necessary fields to each Document
.indexingParams, taxonomyWriter
Constructor and Description |
---|
SortedSetDocValuesFacetFields()
Create a
SortedSetDocValuesFacetField with the
provided CategoryPath . |
SortedSetDocValuesFacetFields(FacetIndexingParams fip)
Create a
SortedSetDocValuesFacetField with the
provided CategoryPath , and custom FacetIndexingParams . |
Modifier and Type | Method and Description |
---|---|
void |
addFields(Document doc,
Iterable<CategoryPath> categories)
Adds the needed facet fields to the document.
|
addCountingListData, createCategoryListMapping, drillDownFieldType, getCategoryListData, getDrillDownStream
public SortedSetDocValuesFacetFields()
SortedSetDocValuesFacetField
with the
provided CategoryPath
.public SortedSetDocValuesFacetFields(FacetIndexingParams fip)
SortedSetDocValuesFacetField
with the
provided CategoryPath
, and custom FacetIndexingParams
.public void addFields(Document doc, Iterable<CategoryPath> categories) throws IOException
FacetFields
addFields
in class FacetFields
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.