public final class ICUCollationDocValuesField extends Field
SortedDocValuesField.
This is more efficient that ICUCollationKeyAnalyzer if the field
only has one value: no uninversion is necessary to sort on the field,
locale-sensitive range queries can still work via DocValuesRangeQuery,
and the underlying data structures built at index-time are likely more efficient
and use less memory than FieldCache.
Field.StorefieldsData, tokenStream, type| Constructor and Description |
|---|
ICUCollationDocValuesField(String name,
com.ibm.icu.text.Collator collator)
Create a new ICUCollationDocValuesField.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name() |
void |
setStringValue(String value) |
binaryValue, fieldType, getCharSequenceValue, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toStringpublic ICUCollationDocValuesField(String name, com.ibm.icu.text.Collator collator)
NOTE: you should not create a new one for each document, instead
just make one and reuse it during your indexing process, setting
the value via setStringValue(String).
name - field namecollator - Collator for generating collation keys.public String name()
name in interface IndexableFieldname in class Fieldpublic void setStringValue(String value)
setStringValue in class FieldCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.