public class FloatAssociationFacetField extends AssociationFacetField
Document
to add
a facet label associated with a float. Use TaxonomyFacetSumFloatAssociations
to aggregate float values
per facet label at search time.Field.Store
assoc, dim, path, TYPE
fieldsData, name, tokenStream, type
Constructor and Description |
---|
FloatAssociationFacetField(float assoc,
String dim,
String... path)
Creates this from
dim and path and a
float association |
Modifier and Type | Method and Description |
---|---|
static float |
bytesRefToFloat(BytesRef b)
Decodes a previously encoded
float . |
static BytesRef |
floatToBytesRef(float v)
Encodes a
float as a 4-byte BytesRef . |
String |
toString() |
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue
public static BytesRef floatToBytesRef(float v)
float
as a 4-byte BytesRef
.public static float bytesRefToFloat(BytesRef b)
float
.public String toString()
toString
in class AssociationFacetField
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.