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, getDrillDownStreampublic 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
FacetFieldsaddFields in class FacetFieldsIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.