Method SetValue
SetValue(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 Document instance is re-used as well. This helps most on small documents.
Each Field instance should only be used once within a single Document instance. See ImproveIndexingSpeed for details.
Declaration
public void SetValue(String value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
SetValue(IO.TextReader)
Expert: change the value of this field. See setValue(String).
Declaration
public void SetValue(IO.TextReader value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | value |
SetValue(Byte[])
Expert: change the value of this field. See setValue(String).
Declaration
public void SetValue(byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | value |
SetValue(Byte[], Int32, Int32)
Expert: change the value of this field. See setValue(String).
Declaration
public void SetValue(byte[] value, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | value | |
System.Int32 | offset | |
System.Int32 | length |