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.
Obtains an OpsDoc object, which can be used to declare required attribute fields during initialization.
Obtains an OpsRequest object, which can be used to obtain the information about a search request.