OpenSearch/modules/lang-mustache
Luca Cavanna 6d987a9b69 Remove support for empty queries (#22092)
Our query DSL supports empty queries (`{}`), which have a different meaning depending on the query that holds it, either ignored, match_all or match_none. We deprecated the support for empty queries in 5.0, where we log a deprecation warning wherever they are used.

The way we supported it once we moved query parsing to the coordinating node was having an Optional<QueryBuilder> return type in all of our parse methods (called fromXContent). See #17624. The central place for this was QueryParseContext#parseInnerQueryBuilder. We can now remove all the optional return types and simply throw an exception whenever an empty query is found.
2016-12-12 12:37:12 +01:00
..
licenses Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00
src Remove support for empty queries (#22092) 2016-12-12 12:37:12 +01:00
build.gradle Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00