The OpsScoreParams class encapsulates the functions that are used for score calculation. OpenSearch automatically creates an OpsScoreParams object and uses this object as the input parameter of the `double score(OpsScoreParams params)` function. You can use this OpsScoreParams object for score calculation without the need to manually create one.
Obtains an OpsDoc object, from which you can obtain attribute fields in the document during score calculation.
Obtains an OpsRequest object, from which you can obtain request information.