All Products
Search
Document Center

:OpsScorerInitParams

Last Updated:Feb 06, 2023

Overview

When you use Cava to develop sort plug-ins of OpenSearch, you must invoke the boolean init(OpsScorerInitParams params) function. You can use the OpsScorerInitParams object to obtain various resources during initialization. The OpsScorerInitParams object is created by the framework during initialization. Therefore, you can directly use this object.

Functions

Function

Description

OpsDoc getDoc()

Obtains an OpsDoc object, which can be used to declare required attribute fields during initialization.

OpsRequest getRequest()

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

Function details

OpsDoc getDoc()

Obtains an OpsDoc object, which can be used to declare required attribute fields during initialization. For more information, see OpsDoc.

OpsRequest getRequest()

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