public class FacetField
extends Field
Document for every facet label.
NOTE: you must call FacetsConfig.build(Document) before
you add the document to IndexWriter.
| 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.
|
| 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() |
static void |
verifyLabel(java.lang.String label)
Verifies the label is not null or empty string.
|
public static final FieldType TYPE
public final java.lang.String dim
public final java.lang.String[] path
Data In Motion GmbH all rights reserved