OpenSearch/docs/reference/query-dsl
Jim Ferenczi 53462f6499
Make fields optional in multi_match query and rely on index.query.default_field by default (#27380)
* Make fields optional in multi_match query and rely on index.query.default_field by default

This commit adds the ability to send `multi_match` query without providing any `fields`.
When no fields are provided the `multi_match` query will use the fields defined in the index setting `index.query.default_field`
(which in turns defaults to `*`).
The same behavior is already implemented in `query_string` and `simple_query_string` so this change just applies
the heuristic to `multi_match` queries.
Relying on `index.query.default_field` rather than `*` is safer for big mappings that break the 1024 field expansion limit added in 7.0 for all
text queries. For these kind of mappings the admin can change the `index.query.default_field` in order to make sure that exploratory queries using
`multi_match`, `query_string` or `simple_query_string` do not throw an exception.
2017-11-17 10:25:21 +01:00
..
bool-query.asciidoc Rewrite description of `bool`'s `should` (#24342) 2017-04-26 14:09:26 -04:00
boosting-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
common-terms-query.asciidoc [Docs] Fix indentation of examples (#27168) 2017-10-30 11:56:38 +01:00
compound-queries.asciidoc Remove indices query (#21837) 2016-11-30 19:37:01 +01:00
constant-score-query.asciidoc Docs: Added link from bool and constant score query to filter context 2016-12-29 11:05:28 +01:00
dis-max-query.asciidoc Indentation error on example of dist_max (#22578) 2017-01-12 09:38:36 +01:00
exists-query.asciidoc Fix exists query doc 2017-03-30 22:26:10 -04:00
full-text-queries.asciidoc Update full-text-queries.asciidoc 2016-05-10 12:18:21 +02:00
function-score-query.asciidoc Docs: Use correct field name in Field Value factor docs. (#26104) 2017-08-08 16:34:20 -04:00
fuzzy-query.asciidoc Change default value to true for transpositions parameter of fuzzy query (#26901) 2017-10-11 15:31:48 +02:00
geo-bounding-box-query.asciidoc [Docs] Remove ignore_malformed from Geo Query DSL docs 2017-02-06 14:27:15 -06:00
geo-distance-query.asciidoc [Docs] Remove ignore_malformed from Geo Query DSL docs 2017-02-06 14:27:15 -06:00
geo-polygon-query.asciidoc [Docs] Remove ignore_malformed from Geo Query DSL docs 2017-02-06 14:27:15 -06:00
geo-queries.asciidoc Remove docs for the removed `geo_distance_range` query. 2016-11-30 16:36:55 +01:00
geo-shape-query.asciidoc CONSOLEify geo-shape docs 2017-03-31 09:11:54 -04:00
has-child-query.asciidoc docs: describe parent/child performances 2017-10-26 11:49:13 +02:00
has-parent-query.asciidoc docs: describe parent/child performances 2017-10-26 11:49:13 +02:00
ids-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
joining-queries.asciidoc Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
match-all-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
match-phrase-prefix-query.asciidoc Correct some spelling in match-phrase-prefix docs (#24956) 2017-05-30 09:02:01 -04:00
match-phrase-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
match-query.asciidoc Refactor simple_query_string to handle text part like multi_match and query_string (#26145) 2017-08-21 13:12:27 +02:00
minimum-should-match.asciidoc Query DSL: Remove filter parsers. 2015-05-07 20:14:34 +02:00
mlt-query.asciidoc [DOCS] Replace mention of string field type with text and keyword 2017-09-25 11:12:06 +02:00
multi-match-query.asciidoc Make fields optional in multi_match query and rely on index.query.default_field by default (#27380) 2017-11-17 10:25:21 +01:00
multi-term-rewrite.asciidoc Remove parse field deprecations in query builders (#26711) 2017-09-20 16:22:21 +02:00
nested-query.asciidoc [TEST] wait for yellow after setup doc tests (#18726) 2016-06-03 16:37:28 +02:00
parent-id-query.asciidoc Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
percolate-query.asciidoc [Docs] "The the" is a great band, but ... (#26644) 2017-09-14 15:08:20 +02:00
prefix-query.asciidoc Remove parse field deprecations in query builders (#26711) 2017-09-20 16:22:21 +02:00
query-string-query.asciidoc Expose `fuzzy_transpositions` parameter in fuzzy queries (#26870) 2017-10-05 09:01:09 +02:00
query-string-syntax.asciidoc Clarify pure wilcard matching with `query_string` (#26814) 2017-10-04 09:55:26 +02:00
query_filter_context.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
range-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
regexp-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
regexp-syntax.asciidoc Update regexp-syntax.asciidoc (#20973) 2016-10-17 16:32:17 +02:00
script-query.asciidoc Scripting: Change keys for inline/stored scripts to source/id (#25127) 2017-06-09 08:29:25 -07:00
simple-query-string-query.asciidoc Expose `fuzzy_transpositions` parameter in fuzzy queries (#26870) 2017-10-05 09:01:09 +02:00
span-containing-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-field-masking-query.asciidoc Documentation for field_masking_span query (#20395) 2016-09-13 12:27:33 +01:00
span-first-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-multi-term-query.asciidoc Update span-multi-term-query.asciidoc (#22733) 2017-01-23 17:33:40 +01:00
span-near-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-not-query.asciidoc [Docs] Clarify `span_not` query behavior for non-overlapping matches (#27150) 2017-10-30 11:29:40 +01:00
span-or-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-queries.asciidoc Documentation for field_masking_span query (#20395) 2016-09-13 12:27:33 +01:00
span-term-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
span-within-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
special-queries.asciidoc Removed deprecated template query. 2017-05-11 14:56:45 +02:00
term-level-queries.asciidoc Added new terms_set query 2017-11-01 10:55:18 +01:00
term-query.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
terms-query.asciidoc Make `index` in TermsLookup mandatory (#25753) 2017-07-17 18:50:30 +02:00
terms-set-query.asciidoc Added new terms_set query 2017-11-01 10:55:18 +01:00
type-query.asciidoc Add back doc execution to query dsl. 2016-05-24 12:43:41 +02:00
wildcard-query.asciidoc Update wildcard-query.asciidoc (#20057) 2016-08-18 14:04:46 +02:00