Skip to content

Commit 3b81615

Browse files
committed
[DOCS] Replace deprecated filtered query with boolean
Closes #460
1 parent cc2a5fe commit 3b81615

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/search-operations.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ see <<php_json_objects, Dealing with JSON Arrays and Objects in PHP>>.
170170

171171
=== A more complicated example
172172

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

176176
The curl version of the query:
@@ -179,7 +179,7 @@ The curl version of the query:
179179
----
180180
curl -XGET 'localhost:9200/my_index/my_type/_search' -d '{
181181
"query" : {
182-
"filtered" : {
182+
"bool" : {
183183
"filter" : {
184184
"term" : { "my_field" : "abc" }
185185
},
@@ -201,7 +201,7 @@ $params = [
201201
'type' => 'my_type',
202202
'body' => [
203203
'query' => [
204-
'filtered' => [
204+
'bool' => [
205205
'filter' => [
206206
'term' => [ 'my_field' => 'abc' ]
207207
],

0 commit comments

Comments
 (0)