Skip to content

Commit 8ec26ba

Browse files
sarwarbhuiyanpolyfractal
authored andcommitted
[DOCS] bool query's "query" should use a "should" (#545)
1 parent ee931eb commit 8ec26ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/search-operations.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ curl -XGET 'localhost:9200/my_index/my_type/_search' -d '{
183183
"filter" : {
184184
"term" : { "my_field" : "abc" }
185185
},
186-
"query" : {
186+
"should" : {
187187
"match" : { "my_other_field" : "xyz" }
188188
}
189189
}
@@ -205,7 +205,7 @@ $params = [
205205
'filter' => [
206206
'term' => [ 'my_field' => 'abc' ]
207207
],
208-
'query' => [
208+
'should' => [
209209
'match' => [ 'my_other_field' => 'xyz' ]
210210
]
211211
]

0 commit comments

Comments
 (0)