Class ValueSource

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    FieldCacheSource, OrdFieldSource, ReverseOrdFieldSource

    public abstract class ValueSource
    extends Object
    implements Serializable
    Expert: source of values for basic function queries.

    At its default/simplest form, values - one per doc - are used as the score of that doc.

    Values are instantiated as DocValues for a particular reader.

    ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.

    See Also:
    Serialized Form
    WARNING: This API is experimental and might change in incompatible ways in the next release.