public PayloadScoreQuery(SpanQuery wrappedQuery,PayloadFunction function,boolean includeSpanScore){
  this.wrappedQuery=Objects.requireNonNull(wrappedQuery);
  this.function=Objects.requireNonNull(function);
  this.includeSpanScore=includeSpanScore;
}

public PayloadScoreQuery ( SpanQuery wrappedQuery , PayloadFunction function , boolean includeSpanScore ) { this . wrappedQuery = Objects . requireNonNull ( wrappedQuery ) ; this . function = Objects . requireNonNull ( function ) ; this . includeSpanScore = includeSpanScore ; }
creates a new payloadscorequery
