Closed
Description
Java API client version
7.17.7
Java version
openjdk version "19" 2022-09-20
Elasticsearch Version
7.17.7
Problem description
The following code:
MoreLikeThisQuery.Builder mlt = new MoreLikeThisQuery.Builder();
mlt.perFieldAnalyzer("my_field", "keyword")));
mlt.build()
is currently allowed by the client and produces a malformed query.
per_field_analyzer
should be allowed in the like
option only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment