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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Index, Field.Store, Field.TermVector
-
-
Constructor Summary
Constructors Constructor Description AssociationFacetField(BytesRef assoc, java.lang.String dim, java.lang.String... path)Creates this fromdimandpathand an association
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Prints a Field for human consumption.-
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
-
-
-
-
Constructor Detail
-
AssociationFacetField
public AssociationFacetField(BytesRef assoc, java.lang.String dim, java.lang.String... path)
Creates this fromdimandpathand an association
-
-