NumericDocValuesField
instead.@Deprecated public class ByteDocValuesField extends NumericDocValuesField
Field that stores a per-document byte
value for scoring,
sorting or value retrieval. Here's an example usage:
document.add(new ByteDocValuesField(name, (byte) 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 |
---|
ByteDocValuesField(String name,
byte value)
Deprecated.
Creates a new DocValues field with the specified 8-bit byte value
|
Modifier and Type | Method and Description |
---|---|
void |
setByteValue(byte value)
Deprecated.
Expert: change the value of this field.
|
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldType
public ByteDocValuesField(String name, byte value)
name
- field namevalue
- 8-bit byte valueIllegalArgumentException
- if the field name is null.public void setByteValue(byte value)
Field
Field.setStringValue(String)
.setByteValue
in class Field
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.