Skip to content

Commit

Permalink
[DOCS] Replace deprecated filtered query with boolean
Browse files Browse the repository at this point in the history
Closes #460
  • Loading branch information
polyfractal committed Sep 8, 2016
1 parent cc2a5fe commit 3b81615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/search-operations.asciidoc
Expand Up @@ -170,7 +170,7 @@ see <<php_json_objects, Dealing with JSON Arrays and Objects in PHP>>.

=== A more complicated example

Let's construct a slightly more complicated example: a filtered query that contains both a filter and a query.
Let's construct a slightly more complicated example: a boolean query that contains both a filter and a query.
This is a very common activity in elasticsearch queries, so it will be a good demonstration.

The curl version of the query:
Expand All @@ -179,7 +179,7 @@ The curl version of the query:
----
curl -XGET 'localhost:9200/my_index/my_type/_search' -d '{
"query" : {
"filtered" : {
"bool" : {
"filter" : {
"term" : { "my_field" : "abc" }
},
Expand All @@ -201,7 +201,7 @@ $params = [
'type' => 'my_type',
'body' => [
'query' => [
'filtered' => [
'bool' => [
'filter' => [
'term' => [ 'my_field' => 'abc' ]
],
Expand Down

0 comments on commit 3b81615

Please sign in to comment.