fromField

fun fromField(field: String, decoder: (Long) -> Double): DoubleValuesSource

Creates a DoubleValuesSource that wraps a generic NumericDocValues field

Parameters

field

the field to wrap, must have NumericDocValues

decoder

a function to convert the long-valued doc values to doubles