org.apache.lucene.document
NumericDocValuesField instead.@Deprecated public class ShortDocValuesField extends NumericDocValuesField
Field that stores a per-document short value for scoring,
sorting or value retrieval. Here's an example usage:
document.add(new ShortDocValuesField(name, (short) 22));
If you also need to store the value, you should add a
separate StoredField instance.
NumericDocValuesField.Index, Field.Store, Field.TermVectorTYPEboost, fieldsData, name, tokenStream, type| Constructor and Description |
|---|
ShortDocValuesField(String name,
short value)
Deprecated.
Creates a new DocValues field with the specified 16-bit short value
|
| Modifier and Type | Method and Description |
|---|---|
void |
setShortValue(short value)
Deprecated.
Expert: change the value of this field.
|
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldTypepublic ShortDocValuesField(String name, short value)
name - field namevalue - 16-bit short valueIllegalArgumentException - if the field name is nullpublic void setShortValue(short value)
FieldField.setStringValue(String).setShortValue in class FieldCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.