Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch 5.0 #17

Closed
matthewdu opened this issue Nov 3, 2016 · 2 comments
Closed

Elasticsearch 5.0 #17

matthewdu opened this issue Nov 3, 2016 · 2 comments

Comments

@matthewdu
Copy link
Contributor

The api for cat index changed in ES 5.0. By default it no longer returns a json.

https://github.com/omc/searchyll/blob/master/lib/searchyll/indexer.rb#L136
The endpoint here needs to be changed to

/_cat/indices?h=index&format=json

For reference:
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html#_response_as_text_json_smile_yaml_or_cbor

@nz
Copy link
Member

nz commented Nov 3, 2016

Thanks Matthew, nice catch! It looks like we're currently relying on the Content-type: application/json header, which is no longer respected for this purpose, in favor of the Accept header or the query string parameter. I'll go ahead and get this fixed up in a jiffy.

@matthewdu
Copy link
Contributor Author

matthewdu commented Nov 3, 2016

Great. Accept header is even better.

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

No branches or pull requests

2 participants