Skip to content

Commit

Permalink
[DOCS] bool query's "query" should use a "should" (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarwarbhuiyan authored and polyfractal committed Feb 22, 2017
1 parent ee931eb commit 8ec26ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/search-operations.asciidoc
Expand Up @@ -183,7 +183,7 @@ curl -XGET 'localhost:9200/my_index/my_type/_search' -d '{
"filter" : {
"term" : { "my_field" : "abc" }
},
"query" : {
"should" : {
"match" : { "my_other_field" : "xyz" }
}
}
Expand All @@ -205,7 +205,7 @@ $params = [
'filter' => [
'term' => [ 'my_field' => 'abc' ]
],
'query' => [
'should' => [
'match' => [ 'my_other_field' => 'xyz' ]
]
]
Expand Down

0 comments on commit 8ec26ba

Please sign in to comment.