Java org.apache.lucene.document StringField fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.document StringField fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.document StringField.

The text is from its open source code.

Field

FieldTypeTYPE_NOT_STORED
Indexed, not tokenized, omits norms, indexes DOCS_ONLY, not stored.
FieldTypeTYPE_STORED
Indexed, not tokenized, omits norms, indexes DOCS_ONLY, stored

Constructor

StringField(String name, String value, Store stored)
Creates a new textual StringField, indexing the provided String value as a single token.
StringField(String name, BytesRef value, Store stored)
Creates a new binary StringField, indexing the provided binary (BytesRef) value as a single token.

Method

IndexableFieldTypefieldType()
Returns the FieldType for this field.
voidsetStringValue(String value)

Expert: change the value of this field.

StringstringValue()
The value of the field as a String, or null.