/// <summary> Creates a field for numeric values with the specified /// <code>precisionStep</code>. The instance is not yet initialized with /// a numeric value, before indexing a document containing this field, /// set a value using the various set<em>???</em>Value() methods. /// </summary> /// <param name="name">the field name /// </param> /// <param name="precisionStep">the used <a href="../search/NumericRangeQuery.html#precisionStepDesc">precision step</a> /// </param> /// <param name="store">if the field should be stored in plain text form /// (according to <code>toString(value)</code> of the used data type) /// </param> /// <param name="index">if the field should be indexed using {@link NumericTokenStream} /// </param> public NumericField(System.String name, int precisionStep, Field.Store store, bool index):base(name, store, index?Field.Index.ANALYZED_NO_NORMS:Field.Index.NO, Field.TermVector.NO) { SetOmitTermFreqAndPositions(true); tokenStream = new NumericTokenStream(precisionStep); }
/// <summary> Creates a field for numeric values with the specified /// <code>precisionStep</code>. The instance is not yet initialized with /// a numeric value, before indexing a document containing this field, /// set a value using the various set<em>???</em>Value() methods. /// </summary> /// <param name="name">the field name /// </param> /// <param name="precisionStep">the used <a href="../search/NumericRangeQuery.html#precisionStepDesc">precision step</a> /// </param> /// <param name="store">if the field should be stored in plain text form /// (according to <code>toString(value)</code> of the used data type) /// </param> /// <param name="index">if the field should be indexed using {@link NumericTokenStream} /// </param> public NumericField(System.String name, int precisionStep, Field.Store store, bool index) : base(name, store, index?Field.Index.ANALYZED_NO_NORMS:Field.Index.NO, Field.TermVector.NO) { SetOmitTermFreqAndPositions(true); tokenStream = new NumericTokenStream(precisionStep); }