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.
Implements
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Use BinaryDocValuesField instead.")]
public class StraightBytesDocValuesField : BinaryDocValuesField, IIndexableFieldConstructors
| Improve this Doc View SourceStraightBytesDocValuesField(String, BytesRef)
Create a new fixed or variable length DocValues field.
Declaration
public StraightBytesDocValuesField(string name, BytesRef bytes)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | field name | 
| BytesRef | bytes | binary content | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | if the field  | 
StraightBytesDocValuesField(String, BytesRef, Boolean)
Create a new fixed or variable length direct DocValues field.
Declaration
public StraightBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | field name | 
| BytesRef | bytes | binary content | 
| System.Boolean | isFixedLength | (ignored) | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | if the field  | 
Fields
| Improve this Doc View SourceTYPE_FIXED_LEN
Type for direct bytes DocValues: all with the same length
Declaration
public static readonly FieldType TYPE_FIXED_LENField Value
| Type | Description | 
|---|---|
| FieldType | 
TYPE_VAR_LEN
Type for direct bytes DocValues: can have variable lengths
Declaration
public static readonly FieldType TYPE_VAR_LENField Value
| Type | Description | 
|---|---|
| FieldType |