Commit 789c3a9797b4b42e6b718c11324a3df17a4ba592
1 parent
433a459d
Exists in
master
and in
17 other branches
Fixed deprecated options in docs - #1193 [skip ci]
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -782,9 +782,11 @@ Product.search "apples", aggs: {store_id: {limit: 10}} |
782 | 782 | Order |
783 | 783 | |
784 | 784 | ```ruby |
785 | -Product.search "wingtips", aggs: {color: {order: {"_term" => "asc"}}} # alphabetically | |
785 | +Product.search "wingtips", aggs: {color: {order: {"_key" => "asc"}}} # alphabetically | |
786 | 786 | ``` |
787 | 787 | |
788 | +**Note:** Use `_term` instead of `_key` in ElasticSearch 5 | |
789 | + | |
788 | 790 | [All of these options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-order) |
789 | 791 | |
790 | 792 | Ranges |
... | ... | @@ -806,6 +808,8 @@ Script support |
806 | 808 | Product.search "*", aggs: {color: {script: {source: "'Color: ' + _value"}}} |
807 | 809 | ``` |
808 | 810 | |
811 | +**Note:** Use `inline` instead of `source` before Elasticsearch 5.6 | |
812 | + | |
809 | 813 | Date histogram |
810 | 814 | |
811 | 815 | ```ruby | ... | ... |