public class TaxonomyFacetLabels extends Object
Modifier and Type | Class and Description |
---|---|
class |
TaxonomyFacetLabels.FacetLabelReader
Utility class to retrieve facet labels for multiple documents.
|
Constructor and Description |
---|
TaxonomyFacetLabels(TaxonomyReader taxoReader,
String indexFieldName)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
TaxonomyFacetLabels.FacetLabelReader |
getFacetLabelReader(LeafReaderContext readerContext)
Create and return an instance of
TaxonomyFacetLabels.FacetLabelReader to retrieve facet labels for
multiple documents and (optionally) for a specific dimension. |
public TaxonomyFacetLabels(TaxonomyReader taxoReader, String indexFieldName) throws IOException
TaxonomyReader
while still using this instance!IOException
public TaxonomyFacetLabels.FacetLabelReader getFacetLabelReader(LeafReaderContext readerContext) throws IOException
TaxonomyFacetLabels.FacetLabelReader
to retrieve facet labels for
multiple documents and (optionally) for a specific dimension. You must create this per-segment,
and then step through all hits, in order, for that segment.
NOTE: This class is not thread-safe, so you must use a new instance of this class for each thread.
readerContext
- LeafReaderContext used to access the BinaryDocValues
facet fieldTaxonomyFacetLabels.FacetLabelReader
IOException
- when a low-level IO issue occursCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.