public class FacetField extends Field
Document for every facet label.
NOTE: you must call FacetsConfig.build(Document) before
you add the document to IndexWriter.
Field.Store| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
dim
Dimension for this field.
|
java.lang.String[] |
path
Path for this field.
|
static FieldType |
TYPE
Field type used for storing facet values: docs, freqs, and positions.
|
fieldsData, name, tokenStream, type| Constructor and Description |
|---|
FacetField(java.lang.String dim,
java.lang.String... path)
Creates the this from
dim and
path. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Prints a Field for human consumption.
|
static void |
verifyLabel(java.lang.String label)
Verifies the label is not null or empty string.
|
binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValuepublic static final FieldType TYPE
public final java.lang.String dim
public final java.lang.String[] path
Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.