Skip to content

Search extension plugins are not supported in new client #264

Closed
@sothawo

Description

@sothawo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions