Class IntDocValuesField

All Implemented Interfaces:
IndexableField

@Deprecated public class IntDocValuesField extends NumericDocValuesField
Deprecated.

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

   document.add(new IntDocValuesField(name, 22));
 

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

See Also:
  • Constructor Details

    • IntDocValuesField

      public IntDocValuesField(String name, int value)
      Deprecated.
      Creates a new DocValues field with the specified 32-bit integer value
      Parameters:
      name - field name
      value - 32-bit integer value
      Throws:
      IllegalArgumentException - if the field name is null
  • Method Details