Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 2dd942a

Browse files
Updated query dsl snippets to follow the order of the text
1 parent 73b7c9c commit 2dd942a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

snippets/054_Query_DSL/70_Match_query.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@ GET /test/test/_search
7272
}
7373
}
7474

75-
# Where `tag` is "full_text"
75+
# Where `public` is true
7676
GET /test/test/_search
7777
{
7878
"query": {
7979
"match": {
80-
"tag": "full_text"
80+
"public": true
8181
}
8282
}
8383
}
8484

85-
# Where `public` is true
85+
# Where `tag` is "full_text"
8686
GET /test/test/_search
8787
{
8888
"query": {
8989
"match": {
90-
"public": true
90+
"tag": "full_text"
9191
}
9292
}
9393
}

snippets/054_Query_DSL/70_Term_filter.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ GET /test/test/_search
5454
}
5555
}
5656

57-
# Where `tag` is "full_text"
57+
# Where `public` is true
5858
GET /test/test/_search
5959
{
6060
"query": {
6161
"filtered": {
6262
"filter": {
6363
"term": {
64-
"tag": "full_text"
64+
"public": true
6565
}
6666
}
6767
}
6868
}
6969
}
7070

71-
# Where `public` is true
71+
# Where `tag` is "full_text"
7272
GET /test/test/_search
7373
{
7474
"query": {
7575
"filtered": {
7676
"filter": {
7777
"term": {
78-
"public": true
78+
"tag": "full_text"
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)