Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Order by "_term" in elasticsearch query is deprecated in version 6.0.0 #334

Open
calixteman opened this issue Feb 7, 2018 · 1 comment
Labels

Comments

@calixteman
Copy link

I made a query with an order inside an aggregation:
'order': { '_key': 'desc' }
and the result was empty.
After reading the docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html
I replaced '_key' by '_term' and it's ok, but according to this doc '_term' is deprecated in 6.0.0.
So when your ES will be updated, my query could silently failed and so you should probably add a warning field in the result to explain the deprecation or return an error when keywords are not correct.

@leplatrem
Copy link
Collaborator

Thanks for reporting this! I took track of this in kinto-elasticsearch, where we catch ES error and return an empty response...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants