OpenSearch/docs/reference
Jim Ferenczi c3784326eb Refactor field expansion for match, multi_match and query_string query (#25726)
This commit changes the way we handle field expansion in `match`, `multi_match` and `query_string` query.
 The main changes are:

- For exact field name, the new behavior is to rewrite to a matchnodocs query when the field name is not found in the mapping.

- For partial field names (with `*` suffix), the expansion is done only on `keyword`, `text`, `date`, `ip` and `number` field types. Other field types are simply ignored.

- For all fields (`*`), the expansion is done on accepted field types only (see above) and metadata fields are also filtered.

- The `*` notation can also be used to set `default_field` option on`query_string` query. This should replace the needs for the extra option `use_all_fields` which is deprecated in this change.

This commit also rewrites simple `*` query to matchalldocs query when all fields are requested (Fixes #25556). 

The same change should be done on `simple_query_string` for completeness.

`use_all_fields` option in `query_string` is also deprecated in this change, `default_field` should be set to `*` instead.

Relates #25551
2017-07-21 16:52:57 +02:00
..
aggregations Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
analysis Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
cat Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
cluster Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
docs Remove deprecated created and found from index, delete and bulk (#25516) 2017-07-07 13:58:46 -04:00
how-to Broke recipes into separate pages 2017-07-17 18:21:39 +02:00
images Update MSI installer images (#25414) 2017-06-28 09:04:23 +10:00
index-modules Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
indices Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
ingest Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
mapping [DOCS] improve explanation of dynamic mapping setting (#25829) 2017-07-21 12:24:38 +01:00
migration Refactor field expansion for match, multi_match and query_string query (#25726) 2017-07-21 16:52:57 +02:00
modules Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
query-dsl Refactor field expansion for match, multi_match and query_string query (#25726) 2017-07-21 16:52:57 +02:00
release-notes Added release notes for 6.0.0-alpha2 2017-06-06 11:52:18 +02:00
search Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
setup Reorganised setup docs into better order 2017-07-21 11:24:46 +02:00
testing Docs: Replace deprecated pluginList with Arrays.asList (#24270) 2017-04-24 13:30:37 +02:00
aggregations.asciidoc Update aggregation.asciidoc (#24042) 2017-04-11 09:02:38 -04:00
analysis.asciidoc Add the ability to set an analyzer on keyword fields. (#21919) 2016-12-30 09:36:10 +01:00
api-conventions.asciidoc Remove (deprecated) support for '+' in index expressions (#25274) 2017-06-19 15:19:17 +02:00
cat.asciidoc [DOCS] Fixed various typos in the 'cat APIs' section (#23216) 2017-02-16 20:41:42 +01:00
cluster.asciidoc [docs] include two cluster doc pages missing from index (#25180) 2017-06-12 12:33:56 -07:00
docs.asciidoc Inclusion of link to Multi Delete (#22619) 2017-01-16 12:58:59 +01:00
getting-started.asciidoc [DOCS] Changes xrefs to cross doc links to enable building GS "mini-docs" 2017-07-18 13:52:38 -07:00
glossary.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
gs-index.asciidoc [DOCS] Adding index file for GS "mini book". 2017-07-18 13:44:08 -07:00
how-to.asciidoc Correct grammar in list in how-to docs 2017-01-17 20:57:22 -05:00
index-modules.asciidoc Update experimental labels in the docs (#25727) 2017-07-18 14:06:22 +02:00
index-shared1.asciidoc [DOCS] Split index-shared.asciidoc into multiple smaller files (#25302) 2017-06-19 15:14:53 -07:00
index-shared2.asciidoc [DOCS] Split index-shared.asciidoc into multiple smaller files (#25302) 2017-06-19 15:14:53 -07:00
index-shared3.asciidoc [DOCS] Split index-shared.asciidoc into multiple smaller files (#25302) 2017-06-19 15:14:53 -07:00
index.asciidoc Include shared/attributes.asciidoc from docs master 2017-07-03 18:17:34 +02:00
indices.asciidoc Remove shadow replicas 2017-04-11 11:26:26 -06:00
ingest.asciidoc
mapping.asciidoc [DOCS] Explain mapping explosion (#25654) 2017-07-14 09:47:41 +02:00
modules.asciidoc Docs: Cross-cluster search doc wasn't being included 2017-01-18 10:02:51 +01:00
query-dsl.asciidoc
redirects.asciidoc Mark filtered query example as not to be used (#25661) 2017-07-14 11:45:21 +02:00
release-notes.asciidoc Added release notes for 6.0.0-alpha2 2017-06-06 11:52:18 +02:00
search.asciidoc Removed field-stats docs 2017-07-11 15:15:25 +02:00
setup.asciidoc Reorganised setup docs into better order 2017-07-21 11:24:46 +02:00
testing.asciidoc