Class DerefBytesDocValuesField
Field that stores a per-document BytesRef value. Here's an example usage:
document.Add(new DerefBytesDocValuesField(name, new BytesRef("hello")));
If you also need to store the value, you should add a separate StoredField instance.
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class DerefBytesDocValuesField : BinaryDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceDerefBytesDocValuesField(String, BytesRef)
Create a new fixed or variable-length DocValues field.
Declaration
public DerefBytesDocValuesField(string name, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
BytesRef | bytes | binary content |
DerefBytesDocValuesField(String, BytesRef, Boolean)
Create a new fixed or variable length DocValues field.
Declaration
public DerefBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
BytesRef | bytes | binary content |
System.Boolean | isFixedLength | (ignored) |
Fields
| Improve this Doc View SourceTYPE_FIXED_LEN
Type for bytes DocValues: all with the same length
Declaration
public static readonly FieldType TYPE_FIXED_LEN
Field Value
Type | Description |
---|---|
FieldType |
TYPE_VAR_LEN
Type for bytes DocValues: can have variable lengths
Declaration
public static readonly FieldType TYPE_VAR_LEN
Field Value
Type | Description |
---|---|
FieldType |