Package org.apache.lucene.facet.taxonomy
Class AssociationFacetField
java.lang.Object
org.apache.lucene.document.Field
org.apache.lucene.facet.taxonomy.AssociationFacetField
- All Implemented Interfaces:
IndexableField
- Direct Known Subclasses:
FloatAssociationFacetField,IntAssociationFacetField
Add an instance of this to your
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.-
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
ConstructorsConstructorDescriptionAssociationFacetField(BytesRef assoc, String dim, String... path) Creates this fromdimandpathand an association -
Method Summary
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
-
TYPE
IndexedFieldType. -
dim
Dimension for this field. -
path
Facet path for this field. -
assoc
Associated value.
-
-
Constructor Details
-
AssociationFacetField
Creates this fromdimandpathand an association
-
-
Method Details