Apache Lucene.Net 2.4.0 Class Library API

Field Constructor

Create a field by specifying its name, value and how it will be saved in the index. Term vectors will not be stored in the index.

Overload List

Create a tokenized and indexed field that is not stored. Term vectors will not be stored. This is useful for pre-analyzed fields. The TokenStream is read only when the Document is added to the index, i.e. you may not close the TokenStream until {@link IndexWriter#AddDocument(Document)} has been called.

public Field(string,TokenStream);

Create a tokenized and indexed field that is not stored, optionally with storing term vectors. This is useful for pre-analyzed fields. The TokenStream is read only when the Document is added to the index, i.e. you may not close the TokenStream until {@link IndexWriter#AddDocument(Document)} has been called.

public Field(string,TokenStream,TermVector);

Create a stored field with binary value. Optionally the value may be compressed.

public Field(string,byte[],Store);

Create a stored field with binary value. Optionally the value may be compressed.

public Field(string,byte[],int,int,Store);

Create a tokenized and indexed field that is not stored. Term vectors will not be stored. The Reader is read only when the Document is added to the index, i.e. you may not close the Reader until {@link IndexWriter#AddDocument(Document)} has been called.

public Field(string,TextReader);

Create a tokenized and indexed field that is not stored, optionally with storing term vectors. The Reader is read only when the Document is added to the index, i.e. you may not close the Reader until {@link IndexWriter#AddDocument(Document)} has been called.

public Field(string,TextReader,TermVector);

Create a field by specifying its name, value and how it will be saved in the index. Term vectors will not be stored in the index.

public Field(string,string,Store,Index);

Create a field by specifying its name, value and how it will be saved in the index.

public Field(string,string,Store,Index,TermVector);

See Also

Field Class | Lucene.Net.Documents Namespace