Class SortedDocValuesField

  • All Implemented Interfaces:

    public class SortedDocValuesField
    extends Field

    Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:

       document.add(new SortedDocValuesField(name, new BytesRef("hello")));

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

    This value can be at most 32766 bytes long.