Filtered query in Elasticsearch 2

(mramaprasad) #1
tells that a filtered query can be used in Elastic search 2.0.
But at tells us that
Filtered quey is deprecated in 2.0

Which one is right?

Deprecation of filtered in elasticsearch 2.0
Elasticsearch 2 - filtered query
(Ivan Brusic) #2

The pages in the Definitive Guide state right on top:

PLEASE NOTE: We are working on updating this book for the latest version.
Some content might be out of date.

The reference guide is the most up-to-date guide. The definitive guide,
still does not reflect 2.0. I am assuming there will be a push to update
the guide all at once and not just a page at a time.

(mramaprasad) #3

curl -XGET 'http://localhost:9200/cstest/teset1/_search?pretty=true' -d '
"query" : {
"filtered": {
"filter": {
"range": {
"publish_date": {
"gte": "2014-09"

works in elasticsearch 2. This is a filtered query right?

(system) #4