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
public class IntAssociationFacetField extends AssociationFacetField
Add an instance of this to yourDocument
to add a facet label associated with an int. UseTaxonomyFacetSumIntAssociations
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, TYPE
-
Fields inherited from class org.apache.lucene.document.Field
fieldsData, name, tokenStream, type
-
-
Constructor Summary
Constructors Constructor Description IntAssociationFacetField(int assoc, String dim, String... path)
Creates this fromdim
andpath
and an int association
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
bytesRefToInt(BytesRef b)
Decodes a previously encodedint
.static BytesRef
intToBytesRef(int v)
Encodes anint
as a 4-byteBytesRef
, big-endian.String
toString()
-
Methods inherited from class org.apache.lucene.document.Field
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue
-
-