All Products
Search
Document Center

OpsScorerInitParams

Last Updated: Sep 09, 2021

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, which can be used to obtain the information about a search request.

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, which can be used to obtain the information about a search request. For more information, see OpsRequest.