public final class StringField extends Field
Field.Index, Field.Store, Field.TermVector
Modifier and Type | Field and Description |
---|---|
static FieldType |
TYPE_NOT_STORED
Indexed, not tokenized, omits norms, indexes
DOCS_ONLY, not stored.
|
static FieldType |
TYPE_STORED
Indexed, not tokenized, omits norms, indexes
DOCS_ONLY, stored
|
boost, fieldsData, name, tokenStream, type
Constructor and Description |
---|
StringField(String name,
String value,
Field.Store stored)
Creates a new StringField.
|
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldType
public static final FieldType TYPE_NOT_STORED
public static final FieldType TYPE_STORED
public StringField(String name, String value, Field.Store stored)
name
- field namevalue
- String valuestored
- Store.YES if the content should also be storedIllegalArgumentException
- if the field name or value is null.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.