Class ByteDocValuesField

  • All Implemented Interfaces:
    IndexableField

    @Deprecated
    public class ByteDocValuesField
    extends NumericDocValuesField
    Deprecated.

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

       document.add(new ByteDocValuesField(name, (byte) 22));
     

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

    See Also:
    NumericDocValues
    • Constructor Detail

      • ByteDocValuesField

        public ByteDocValuesField​(java.lang.String name,
                                  byte value)
        Deprecated.
        Creates a new DocValues field with the specified 8-bit byte value
        Parameters:
        name - field name
        value - 8-bit byte value
        Throws:
        java.lang.IllegalArgumentException - if the field name is null.