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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

Stringname
Field's name
TokenStreamtokenStream
Pre-analyzed tokenStream for indexed fields; this is separate from fieldsData because you are allowed to have both; eg maybe field has a String value but you customize how it's tokenized

Constructor

Method

BytesRefbinaryValue()
IndexableFieldTypefieldType()
Returns the FieldType for this field.
NumbernumericValue()
ReaderreaderValue()
The value of the field as a Reader, or null.
voidsetBytesValue(byte[] value)
Expert: change the value of this field.
voidsetBytesValue(BytesRef value)
Expert: change the value of this field.
voidsetByteValue(byte value)
Expert: change the value of this field.
voidsetDoubleValue(double value)
Expert: change the value of this field.
voidsetFloatValue(float value)
Expert: change the value of this field.
voidsetIntValue(int value)
Expert: change the value of this field.
voidsetLongValue(long value)
Expert: change the value of this field.
voidsetReaderValue(Reader value)
Expert: change the value of this field.
voidsetShortValue(short value)
Expert: change the value of this field.
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.
StringstringValue()
The value of the field as a String, or null.
TokenStreamtokenStreamValue()
The TokenStream for this field to be used when indexing, or null.
StringtoString()
Prints a Field for human consumption.