public final class TextField extends Field
Field.Index, Field.Store, Field.TermVector
Modifier and Type | Field and Description |
---|---|
static FieldType |
TYPE_NOT_STORED
Indexed, tokenized, not stored.
|
static FieldType |
TYPE_STORED
Indexed, tokenized, stored.
|
boost, fieldsData, name, tokenStream, type
Constructor and Description |
---|
TextField(String name,
Reader reader)
Creates a new un-stored TextField with Reader value.
|
TextField(String name,
String value,
Field.Store store)
Creates a new TextField with String value.
|
TextField(String name,
TokenStream stream)
Creates a new un-stored TextField with TokenStream value.
|
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 TextField(String name, Reader reader)
name
- field namereader
- reader valueIllegalArgumentException
- if the field name is nullNullPointerException
- if the reader is nullpublic TextField(String name, String value, Field.Store store)
name
- field namevalue
- string valuestore
- Store.YES if the content should also be storedIllegalArgumentException
- if the field name or value is null.public TextField(String name, TokenStream stream)
name
- field namestream
- TokenStream valueIllegalArgumentException
- if the field name is null.NullPointerException
- if the tokenStream is nullCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.