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

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

Introduction

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

The text is from its open source code.

Subclass

org.apache.lucene.document.TextField has subclasses.
Click this link to see all its subclasses.

Field

FieldTypeTYPE_NOT_STORED
Indexed, tokenized, not stored.
FieldTypeTYPE_STORED
Indexed, tokenized, stored.

Constructor

TextField(String name, String value, Store store)
Creates a new TextField with String value.
TextField(String name, Reader reader)
Creates a new un-stored TextField with Reader value.
TextField(String name, TokenStream stream)
Creates a new un-stored TextField with TokenStream value.

Method

voidsetStringValue(String value)

Expert: change the value of this field.

voidsetTokenStream(TokenStream tokenStream)
Expert: sets the token stream to be used for indexing and causes isIndexed() and isTokenized() to return true.