Skip to content

Conversation

@cbuescher
Copy link
Member

The minimum_should_match parameter for queries like match or query_string" accepts either string values like "2" or "25%", numeric values and in most older cases also nullas a no-op parameter. We also use examples for these different values in our documentation, so we should also support these value types for the newcombined_fields` query. This changes the ConstructingObjectParser used in
CombinedFieldsQueryBuilder so it also accepts integer value types and adds a
parsing test for the different cases.

Closes #72148

The `minimum_should_match` parameter for queries like `match` or `query_string"
accepts either string values like "2" or "25%", numeric values and in most older
cases also `null` as a no-op parameter. We also use examples for these different
values in our documentation, so we should also support these value types for the
new `combined_fields` query. This changes the ConstructingObjectParser used in
CombinedFieldsQueryBuilder so it also accepts integer value types and adds a
parsing test for the different cases.

Closes elastic#72148
@cbuescher cbuescher added >bug :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.13.0 labels Apr 23, 2021
@cbuescher cbuescher requested a review from jtibshirani April 23, 2021 11:18
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Apr 23, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@cbuescher
Copy link
Member Author

@elasticmachine run elasticsearch-ci/1

Copy link
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cbuescher for addressing this! It's a little surprising we accept numbers (since the query builders require a string), but I agree this is worth fixing for consistency.

@cbuescher cbuescher merged commit bad2aaa into elastic:master Apr 26, 2021
cbuescher pushed a commit that referenced this pull request Apr 26, 2021
The `minimum_should_match` parameter for queries like `match` or `query_string"
accepts either string values like "2" or "25%", numeric values and in most older
cases also `null` as a no-op parameter. We also use examples for these different
values in our documentation, so we should also support these value types for the
new `combined_fields` query. This changes the ConstructingObjectParser used in
CombinedFieldsQueryBuilder so it also accepts integer value types and adds a
parsing test for the different cases.

Closes #72148
cbuescher pushed a commit that referenced this pull request Apr 26, 2021
The `minimum_should_match` parameter for queries like `match` or `query_string"
accepts either string values like "2" or "25%", numeric values and in most older
cases also `null` as a no-op parameter. We also use examples for these different
values in our documentation, so we should also support these value types for the
new `combined_fields` query. This changes the ConstructingObjectParser used in
CombinedFieldsQueryBuilder so it also accepts integer value types and adds a
parsing test for the different cases.

Closes #72148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.13.0 v7.14.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combined Fields query minimum_should_match discrepancy for integer values

4 participants