Skip to content

[FEATURE] Get the response SearchResponse from SearchTemplateResponse #1852

Description

@rcbandit111

Is your feature request related to a problem?

In Elastic search we can get the response SearchResponse from SearchTemplateResponse:

import org.elasticsearch.script.mustache.SearchTemplateResponse;
import org.elasticsearch.action.search.SearchResponse;

public SearchResponse searchWithTemplate(..........) {

    SearchTemplateResponse response =.........
    return response.getResponse();
  }

Can we implement the same functionality in OpenSearch Java client?

If not what is the best way to implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions