Skip to content

Search extension plugins are not supported in new client #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sothawo opened this issue May 1, 2022 · 0 comments · Fixed by #384
Closed

Search extension plugins are not supported in new client #264

sothawo opened this issue May 1, 2022 · 0 comments · Fixed by #384
Labels
Area: Specification Related to the API spec used to generate client code

Comments

@sothawo
Copy link
Contributor

sothawo commented May 1, 2022

Java API client version

7.17.3

Java version

openjdk 11.0.15 2022-04-19

Elasticsearch Version

7.17.3

Problem description

When a user has a custom search plugin, it is possible to configure this in the query like this:

{
  "query": {...},
  "ext":{
        "similarity": {
        "fields":{...}
      }
    }
}

The org.elasticsearch.search.builder.SearchSourceBuilder used with the RestHighLevelClient had the possibility to specify this with the public SearchSourceBuilder ext(List<SearchExtBuilder> searchExtBuilders) method.

The new co.elastic.clients.elasticsearch.core.SearchRequest.Builder doesn't seem to offer this feature, so this is a regression from the previous functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants