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 yourDocument
to add a facet label associated with an arbitrary byte[]. This will require a customFacets
implementation at search time; seeIntAssociationFacetField
andFloatAssociationFacetField
to use existingFacets
implementations.
-
-
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 fromdim
andpath
and an association
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
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 fromdim
andpath
and an association
-
-