Class FunctionQuery


  • public class FunctionQuery
    extends Query
    Returns a score for each document based on a ValueSource, often some function of the value of a field.
    See Also:
    ValueSourceScorer
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • FunctionQuery

        public FunctionQuery​(ValueSource func)
        Parameters:
        func - defines the function to be used for scoring