Skip to content

Commit d51de49

Browse files
committed
added filter deprecation message in the docs
1 parent 2072395 commit d51de49

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/Filter/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Filter
22

3+
> 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)
4+
35
Objective filter builder represents all available [Elasticsearch filters][1].
46

57
To form a filtered query you have to create `Search` object. See below an example of match all filter usage.

docs/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Everything starts from the `Search` object. We recommend first to take a look at
99
- [Build Filters](Filter/index.md)
1010
- [Build Aggregations](Aggregation/index.md)
1111

12+
> 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)
13+
1214
### How to
1315
- [How to Search](HowTo/HowToSearch.md)
1416
- [How to set custom parameters to Search](HowTo/CustomParameters.md)

0 commit comments

Comments
 (0)