summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-18 13:15:30 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-18 13:15:30 -0700
commitf3580e317235398e70fac5439f931c35c7bbcea6 (patch)
treeae6d696afa8af668f34c9d38d23100bfe68a5cf7 /tests
parenta7ca6a594a3e52909a6bf0b51fb8a5bb59368cb6 (diff)
downloades-public-proxy-f3580e317235398e70fac5439f931c35c7bbcea6.tar.gz
es-public-proxy-f3580e317235398e70fac5439f931c35c7bbcea6.zip
more tests
Diffstat (limited to 'tests')
-rw-r--r--tests/files/other/POST_count.txt29
-rw-r--r--tests/files/search/POST_search_bool_filter.txt24
2 files changed, 53 insertions, 0 deletions
diff --git a/tests/files/other/POST_count.txt b/tests/files/other/POST_count.txt
new file mode 100644
index 0000000..19082e6
--- /dev/null
+++ b/tests/files/other/POST_count.txt
@@ -0,0 +1,29 @@
+POST /some-index/_count?request_cache=true
+{
+ "query": {
+ "bool": {
+ "filter": [
+ {
+ "term": {
+ "container_id": "123"
+ }
+ },
+ {
+ "term": {
+ "year": 2000
+ }
+ },
+ {
+ "term": {
+ "volume": "4"
+ }
+ },
+ {
+ "term": {
+ "issue": "1"
+ }
+ }
+ ]
+ }
+ }
+}
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
+ }
+ }
+}