Package org.apache.lucene.facet
Class FacetField
java.lang.Object
org.apache.lucene.document.Field
org.apache.lucene.facet.FacetField
- All Implemented Interfaces:
IndexableField
Add an instance of this to your
Document for every facet label.
NOTE: you must call FacetsConfig.build(Document) before
you add the document to IndexWriter.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Index, Field.Store, Field.TermVector -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()Prints a Field for human consumption.static voidverifyLabel(String label) Verifies the label is not null or empty string.Methods inherited from class org.apache.lucene.document.Field
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, translateFieldType
-
Field Details
-
dim
Dimension for this field. -
path
Path for this field.
-
-
Constructor Details
-
FacetField
Creates the this fromdimandpath.
-
-
Method Details