Commit 66e8490
Christoph Büscher
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
1 parent 64c06c8 commit 66e8490
File tree
2 files changed
+31
-1
lines changed- server/src
- main/java/org/elasticsearch/index/query
- test/java/org/elasticsearch/index/query
2 files changed
+31
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
91 | 114 | | |
0 commit comments