Class PackedLongDocValuesField

  • All Implemented Interfaces:
    IndexableField

    @Deprecated
    public class PackedLongDocValuesField
    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 PackedLongDocValuesField(name, 22L));
     

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

    See Also:
    NumericDocValues
    • Constructor Detail

      • PackedLongDocValuesField

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