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

Namespace: Lucene.Net.Documents
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public Field(
	string name,
	byte[] value_Renamed,
	int offset,
	int length,
	Field..::..Store store
)
Visual Basic
Public Sub New ( _
	name As String, _
	value_Renamed As Byte(), _
	offset As Integer, _
	length As Integer, _
	store As Field..::..Store _
)
Visual C++
public:
Field(
	String^ name, 
	array<unsigned char>^ value_Renamed, 
	int offset, 
	int length, 
	Field..::..Store^ store
)

Parameters

name
Type: System..::..String
The name of the field
value_Renamed
Type: array<System..::..Byte>[]()[][]

[Missing <param name="value_Renamed"/> documentation for "M:Lucene.Net.Documents.Field.#ctor(System.String,System.Byte[],System.Int32,System.Int32,Lucene.Net.Documents.Field.Store)"]

offset
Type: System..::..Int32
Starting offset in value where this Field's bytes are
length
Type: System..::..Int32
Number of bytes to use for this Field, starting at offset
store
Type: Lucene.Net.Documents..::..Field..::..Store
How
CopyC#
value
should be stored (compressed or not)

See Also