Class StraightBytesDocValuesField
Field that stores
a per-document Bytes
document.Add(new StraightBytesDocValuesField(name, new BytesRef("hello")));
If you also need to store the value, you should add a
separate Stored
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class StraightBytesDocValuesField : BinaryDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceStraightBytesDocValuesField(String, BytesRef)
Create a new fixed or variable length Doc
Declaration
public StraightBytesDocValuesField(string name, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | field name |
Bytes |
bytes | binary content |
StraightBytesDocValuesField(String, BytesRef, Boolean)
Create a new fixed or variable length direct Doc
Declaration
public StraightBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | field name |
Bytes |
bytes | binary content |
System. |
isFixedLength | (ignored) |
Fields
| Improve this Doc View SourceTYPE_FIXED_LEN
Type for direct bytes Doc
Declaration
public static readonly FieldType TYPE_FIXED_LEN
Field Value
Type | Description |
---|---|
Field |
TYPE_VAR_LEN
Type for direct bytes Doc
Declaration
public static readonly FieldType TYPE_VAR_LEN
Field Value
Type | Description |
---|---|
Field |