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.
NumericDocValues
Field.Index, Field.Store, Field.TermVector
TYPE
boost, 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, translateFieldType
public ShortDocValuesField(String name, short value)
name
- field namevalue
- 16-bit short valueIllegalArgumentException
- if the field name is nullpublic void setShortValue(short value)
Field
Field.setStringValue(String)
.setShortValue
in class Field
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.