You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that the change in elasticsearch-java has been made to conform to the underlying API's specs.
The knn option is now part of the request body of the _search endpoint. Similarly to docvalue_fields, point in time (PIT), etc.
I cannot find how the knn option can be send in the _search request in the current version of Spring-Data-Elasticsearch.
I suppose that the way to support KnnQuery is to add a .withKnnQuery method in the NativeQuery class.
Uh oh!
There was an error while loading. Please reload this page.
Since version 8.4 of the elasticsearch-java client,
KnnQuery
implements onlyJsonpSerializable
.Before that change it was defined as:
public class KnnQuery extends QueryBase implements QueryVariant
As a result, the
KnnQuery
cannot be used in theNativeQuery
class.The text was updated successfully, but these errors were encountered: