public class SortedSetDocValuesField extends Field
Field that stores
a set of per-document BytesRef
values, indexed for
faceting,grouping,joining. Here's an example usage:
document.add(new SortedSetDocValuesField(name, new BytesRef("hello"))); document.add(new SortedSetDocValuesField(name, new BytesRef("world")));
If you also need to store the value, you should add a
separate StoredField
instance.
Field.Store
Modifier and Type | Field and Description |
---|---|
static FieldType |
TYPE
Type for sorted bytes DocValues
|
boost, fieldsData, name, tokenStream, type
Constructor and Description |
---|
SortedSetDocValuesField(String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString
public static final FieldType TYPE
public SortedSetDocValuesField(String name, BytesRef bytes)
name
- field namebytes
- binary contentIllegalArgumentException
- if the field name is nullCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.