Class ShortDocValuesField

All Implemented Interfaces:
IndexableField

@Deprecated public class ShortDocValuesField extends NumericDocValuesField
Deprecated.

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

   document.add(new ShortDocValuesField(name, (short) 22));
 

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

See Also:
  • Constructor Details

    • ShortDocValuesField

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