C# Class Lucene.Net.Documents.NumericDocValuesField

Field that stores a per-document long value for scoring, sorting or value retrieval. Here's an example usage:

 document.add(new NumericDocValuesField(name, 22L)); 

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

Inheritance: Field
Datei anzeigen Open project: paulirwin/lucene.net Class Usage Examples

Public Properties

Property Type Description
TYPE FieldType

Public Methods

Method Description
NumericDocValuesField ( string name, long value ) : System

Creates a new DocValues field with the specified 64-bit long value

Private Methods

Method Description
NumericDocValuesField ( ) : System

Method Details

NumericDocValuesField() public method

Creates a new DocValues field with the specified 64-bit long value
if the field name is null
public NumericDocValuesField ( string name, long value ) : System
name string field name
value long 64-bit long value
return System

Property Details

TYPE public_oe static_oe property

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