org.apache.lucene.document
Class TextField

java.lang.Object
  extended by org.apache.lucene.document.Field
      extended by org.apache.lucene.document.TextField
All Implemented Interfaces:
IndexableField

public final class TextField
extends Field

A field that is indexed and tokenized, without term vectors. For example this would be used on a 'body' field, that contains the bulk of a document's text.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Index, Field.Store, Field.TermVector
 
Field Summary
static FieldType TYPE_NOT_STORED
           
static FieldType TYPE_STORED
           
 
Fields inherited from class org.apache.lucene.document.Field
boost, fieldsData, name, numericTokenStream, tokenStream, type
 
Constructor Summary
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.
 
Method Summary
 
Methods inherited from class org.apache.lucene.document.Field
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NOT_STORED

public static final FieldType TYPE_NOT_STORED

TYPE_STORED

public static final FieldType TYPE_STORED
Constructor Detail

TextField

public TextField(String name,
                 Reader reader)
Creates a new un-stored TextField with Reader value.


TextField

public TextField(String name,
                 String value,
                 Field.Store store)
Creates a new TextField with String value.


TextField

public TextField(String name,
                 TokenStream stream)
Creates a new un-stored TextField with TokenStream value.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.