Class StraightBytesDocValuesField
Field that stores a per-document BytesRef value. If values may be shared it's better to use SortedDocValuesField. Here's an example usage:
document.Add(new StraightBytesDocValuesField(name, new BytesRef("hello")));
If you also need to store the value, you should add a separate StoredField instance.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class StraightBytesDocValuesField : BinaryDocValuesField, IIndexableField
Constructors
Name | Description |
---|---|
StraightBytesDocValuesField(String, BytesRef) | Create a new fixed or variable length DocValues field. |
StraightBytesDocValuesField(String, BytesRef, Boolean) | Create a new fixed or variable length direct DocValues field. |
Fields
Name | Description |
---|---|
TYPE_FIXED_LEN | Type for direct bytes DocValues: all with the same length |
TYPE_VAR_LEN | Type for direct bytes DocValues: can have variable lengths |