Apache Lucene.Net 2.4.0 Class Library API

Field.SetValue Method (String)

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 value_Renamed
);

See Also

Field Class | Lucene.Net.Documents Namespace | Field.SetValue Overload List