From f3580e317235398e70fac5439f931c35c7bbcea6 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 18 Oct 2020 13:15:30 -0700 Subject: more tests --- tests/files/search/POST_search_bool_filter.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/files/search/POST_search_bool_filter.txt (limited to 'tests/files/search') diff --git a/tests/files/search/POST_search_bool_filter.txt b/tests/files/search/POST_search_bool_filter.txt new file mode 100644 index 0000000..ee39da7 --- /dev/null +++ b/tests/files/search/POST_search_bool_filter.txt @@ -0,0 +1,24 @@ +POST /some-index/_search +{ + "query": { + "bool" : { + "must" : { + "term" : { "user.id" : "kimchy" } + }, + "filter": { + "term" : { "tags" : "production" } + }, + "must_not" : { + "range" : { + "age" : { "gte" : 10, "lte" : 20 } + } + }, + "should" : [ + { "term" : { "tags" : "env1" } }, + { "term" : { "tags" : "deployed" } } + ], + "minimum_should_match" : 1, + "boost" : 1.0 + } + } +} -- cgit v1.2.3