From d51de492a1ab83ba68758e84c82bdd108fed06cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@gmail.com> Date: Mon, 28 Dec 2015 12:56:49 +0200 Subject: [PATCH] added filter deprecation message in the docs --- docs/Filter/index.md | 2 ++ docs/index.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/Filter/index.md b/docs/Filter/index.md index 996b8b3..5cb432f 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 937fd46..7ff3902 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) -- GitLab