diff --git a/docs/Filter/index.md b/docs/Filter/index.md index 996b8b31ada3b3e90b73048d60c35fa7d0c45598..5cb432fc11dcf9b92e0dca6fa4d87960044b3755 100644 --- a/docs/Filter/index.md +++ b/docs/Filter/index.md @@ -1,5 +1,7 @@ # Filter +> WARNING: Filters are deprecated since 1.1 and will be removed in 2.0. Elasticsearch from 2.0 casts queries the same way as filters, so there is no reason to have both. More information in [the elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html) + Objective filter builder represents all available [Elasticsearch filters][1]. To form a filtered query you have to create `Search` object. See below an example of match all filter usage. diff --git a/docs/index.md b/docs/index.md index 937fd46bf7b13860c32f34c4c147a4db4010a032..7ff39023cbfa1268202aa6964a3fe12fc8bd4be7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,6 +9,8 @@ Everything starts from the `Search` object. We recommend first to take a look at - [Build Filters](Filter/index.md) - [Build Aggregations](Aggregation/index.md) +> WARNING: Filters are deprecated since 1.1 and will be removed in 2.0. Elasticsearch from 2.0 casts queries the same way as filters, so there is no reason to have both. More information in [the elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html) + ### How to - [How to Search](HowTo/HowToSearch.md) - [How to set custom parameters to Search](HowTo/CustomParameters.md)