Class LongDocValuesField

  • All Implemented Interfaces:
    IndexableField

    @Deprecated
    public class LongDocValuesField
    extends NumericDocValuesField
    Deprecated.

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

       document.add(new LongDocValuesField(name, 22L));
     

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

    See Also:
    NumericDocValues
    • Constructor Detail

      • LongDocValuesField

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