Apache Lucene.Net 2.4.0 Class Library API

Field.SetValue Method

Expert: change the value of this field. See setValue(String).

Overload List

Expert: change the value of this field. See setValue(String).

public void SetValue(TokenStream);

Expert: change the value of this field. See setValue(String).

public void SetValue(byte[]);

Expert: change the value of this field. See setValue(String).

public void SetValue(byte[],int,int);

Expert: change the value of this field. See setValue(String).

public void SetValue(TextReader);

Expert: change the value of this field. This can be used during indexing to re-use a single Field instance to improve indexing speed by avoiding GC cost of new'ing and reclaiming Field instances. Typically a single {@link Document} instance is re-used as well. This helps most on small documents. Note that you should only use this method after the Field has been consumed (ie, the {@link Document} containing this Field has been added to the index). Also, each Field instance should only be used once within a single {@link Document} instance. See ImproveIndexingSpeed for details.

public void SetValue(string);

See Also

Field Class | Lucene.Net.Documents Namespace