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:
    NumericDocValues
    • Constructor Detail

      • ShortDocValuesField

        public ShortDocValuesField​(java.lang.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:
        java.lang.IllegalArgumentException - if the field name is null