public class AssociationFacetField extends Field
Document to add
a facet label associated with an arbitrary byte[].
This will require a custom Facets
implementation at search time; see IntAssociationFacetField and FloatAssociationFacetField to use existing Facets implementations.Field.Store| Modifier and Type | Field and Description |
|---|---|
BytesRef |
assoc
Associated value.
|
java.lang.String |
dim
Dimension for this field.
|
java.lang.String[] |
path
Facet path for this field.
|
static FieldType |
TYPE
Indexed
FieldType. |
fieldsData, name, tokenStream, type| Constructor and Description |
|---|
AssociationFacetField(BytesRef assoc,
java.lang.String dim,
java.lang.String... path)
Creates this from
dim and path and an
association |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Prints a Field for human consumption.
|
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValuepublic final java.lang.String dim
public final java.lang.String[] path
public final BytesRef assoc
public AssociationFacetField(BytesRef assoc, java.lang.String dim, java.lang.String... path)
dim and path and an
associationCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.