OpenSearch/plugins/delete-by-query
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
..
licenses no_deps.txt should be in the licenses/ directory in plugins 2015-08-09 20:16:11 +02:00
src Remove "query" query and fix related parsing bugs 2015-10-27 14:54:30 +01:00
.gitignore Refactor pluginservice 2015-07-22 10:45:45 -04:00
pom.xml Move version to 3.0.0-SNAPSHOT 2015-09-03 10:43:28 +02:00