java.lang.Object
org.apache.lucene.document.Field
org.apache.lucene.document.BinaryDocValuesField
org.apache.lucene.facet.facetset.FacetSetsField
- All Implemented Interfaces:
IndexableField
A
BinaryDocValuesField which encodes a list of facet sets. The encoding
scheme consists of a packed byte[] where the first value denotes the number of dimensions
in all the sets, followed by each set's values.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Store -
Field Summary
Fields inherited from class org.apache.lucene.document.BinaryDocValuesField
TYPEFields inherited from class org.apache.lucene.document.Field
fieldsData, name, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FacetSetsFieldCreate a new FacetSets field.private static BytesReftoPackedValues(FacetSet... facetSets) 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, toString
-
Constructor Details
-
FacetSetsField
-
-
Method Details
-
create
Create a new FacetSets field.- Parameters:
name- field namefacetSets- thefacet setsto index in that field. All must have the same number of dimensions- Throws:
IllegalArgumentException- if the field name is null or the given facet sets are invalid
-
toPackedValues
-