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
public class AssociationFacetField extends Field
Add an instance of this to yourDocumentto add a facet label associated with an arbitrary byte[]. This will require a customFacetsimplementation at search time; seeIntAssociationFacetFieldandFloatAssociationFacetFieldto use existingFacetsimplementations.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Store
-
-
Field Summary
Fields Modifier and Type Field Description BytesRefassocAssociated value.StringdimDimension for this field.String[]pathFacet path for this field.static FieldTypeTYPEIndexedFieldType.-
Fields inherited from class org.apache.lucene.document.Field
fieldsData, name, tokenStream, type
-
-
Constructor Summary
Constructors Constructor Description AssociationFacetField(BytesRef assoc, String dim, String... path)Creates this fromdimandpathand an association
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()-
Methods inherited from class org.apache.lucene.document.Field
binaryValue, fieldType, getCharSequenceValue, invertableType, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, storedValue, stringValue, tokenStream, tokenStreamValue
-
-