Skip to content

MoreLikeThisQuery should not allow per_field_analyzer outside like parameter #533

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

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