Closed
Description
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.