All Products
Search
Document Center

OpsScoreParams

Last Updated: Sep 09, 2021

Overview

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.

Functions

Function

Description

OpsDoc getDoc()

Obtains an OpsDoc object, from which you can obtain attribute fields in the document during score calculation.

OpsRequest getRequest()

Obtains an OpsRequest object, from which you can obtain request information.

Function details

OpsDoc getDoc()

Obtains an OpsDoc object, from which you can obtain attribute fields in the document during score calculation. For more information, see OpsDoc.

OpsRequest getRequest()

Obtains an OpsRequest object, from which you can obtain request information. For more information, see OpsRequest.