OpenSearch/docs/reference/migration
javanna dc900a08a6 Remove "query" query and fix related parsing bugs
We have two types of parse methods for queries: one for the inner query, to be used once the parser is positioned within the query element, and one for the whole query source, including the query element that wraps the actual query.

With the search refactoring we ended up using the former in count, cat count and delete by query, whereas we should have used the former.  It ends up working properly given that we have a registered (deprecated) query called "query", which used to allow to wrap a filter into a query, but this has the following downsides:
1) prevents us from removing the deprecated "query" query
2) we end up supporting a top level query that is not wrapped within a query element (pre 1.0 syntax iirc that shouldn't be supported anymore)

This commit finally removes the "query" query and fixes the related parsing bugs. We also had some tests that were providing queries in the wrong format, those have been fixed too.

Closes #13326
Closes #14304
2015-10-27 14:54:30 +01:00
..
migrate_2_0 changed he to the 2015-10-12 15:16:49 +01:00
index.asciidoc Remove the scan and count search types. 2015-09-07 15:18:45 +02:00
migrate_1_0.asciidoc Docs: Remove docs for the `filtered`, `and`, `or` and `(f)query` queries. 2015-09-11 11:00:54 +02:00
migrate_1_4.asciidoc Query DSL: Remove filter parsers. 2015-05-07 20:14:34 +02:00
migrate_1_6.asciidoc parent/child: Deprecated the `top_children` in favour of the `has_child` query. 2015-05-07 09:27:54 +02:00
migrate_2_0.asciidoc Mapping: Default position_offset_gap to 100 2015-08-25 14:21:50 -04:00
migrate_2_1.asciidoc Add Force Merge API, deprecate Optimize API 2015-10-20 09:00:24 -06:00
migrate_3_0.asciidoc Remove "query" query and fix related parsing bugs 2015-10-27 14:54:30 +01:00