C# Class Lucene.Net.Documents.SortedDocValuesField

Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:

 document.add(new SortedDocValuesField(name, new BytesRef("hello"))); 

If you also need to store the value, you should add a separate StoredField instance.

Inheritance: Field
显示文件 Open project: paulirwin/lucene.net Class Usage Examples

Public Properties

Property Type Description
TYPE FieldType

Public Methods

Method Description
SortedDocValuesField ( string name, BytesRef bytes ) : Lucene.Net.Index

Create a new sorted DocValues field.

Private Methods

Method Description
SortedDocValuesField ( ) : Lucene.Net.Index

Method Details

SortedDocValuesField() public method

Create a new sorted DocValues field.
if the field name is null
public SortedDocValuesField ( string name, BytesRef bytes ) : Lucene.Net.Index
name string field name
bytes BytesRef binary content
return Lucene.Net.Index

Property Details

TYPE public_oe static_oe property

Type for sorted bytes DocValues
public static FieldType,Lucene.Net.Documents TYPE
return FieldType