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.Index, Field.Store, Field.TermVectorassoc, dim, path, TYPEboost, 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, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, translateFieldTypepublic static BytesRef floatToBytesRef(float v)
float as a 4-byte BytesRef.public static float bytesRefToFloat(BytesRef b)
float.public String toString()
toString in class AssociationFacetFieldCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.