Package org.apache.lucene.facet.taxonomy
Class IntAssociationFacetField
java.lang.Object
org.apache.lucene.document.Field
org.apache.lucene.facet.taxonomy.AssociationFacetField
org.apache.lucene.facet.taxonomy.IntAssociationFacetField
- All Implemented Interfaces:
IndexableField
Add an instance of this to your
Document to add a facet label associated with an int. Use
TaxonomyFacetIntAssociations to aggregate int values per facet label at search time.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Store -
Field Summary
Fields inherited from class org.apache.lucene.facet.taxonomy.AssociationFacetField
assoc, dim, path, TYPEFields inherited from class org.apache.lucene.document.Field
fieldsData, name, type -
Constructor Summary
ConstructorsConstructorDescriptionIntAssociationFacetField(int assoc, String dim, String... path) Creates this fromdimandpathand an int association -
Method Summary
Modifier and TypeMethodDescriptionstatic intDecodes a previously encodedint.static BytesRefintToBytesRef(int v) Encodes anintas a 4-byteBytesRef, big-endian.toString()Methods inherited from class org.apache.lucene.document.Field
binaryValue, fieldType, getCharSequenceValue, invertableType, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, storedValue, stringValue, tokenStream, tokenStreamValue
-
Constructor Details
-
IntAssociationFacetField
Creates this fromdimandpathand an int association
-
-
Method Details
-
intToBytesRef
Encodes anintas a 4-byteBytesRef, big-endian. -
bytesRefToInt
Decodes a previously encodedint. -
toString
- Overrides:
toStringin classAssociationFacetField
-