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 |
---|---|
String |
dim
Dimension for this field.
|
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(String dim,
String... path)
Creates the this from
dim and
path . |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static void |
verifyLabel(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, tokenStreamValue
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.