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

Support YAML as output format of the analyze API #4311

Closed
obfischer opened this issue Dec 2, 2013 · 1 comment
Closed

Support YAML as output format of the analyze API #4311

obfischer opened this issue Dec 2, 2013 · 1 comment

Comments

@obfischer
Copy link

It would be nice to be able to get the result of an analyzer in YAML instead of JSON. Currently I am not able to get it as YAML. Neither via format=yaml nor by setting the accept header to application\yaml.

@dakrone
Copy link
Member

dakrone commented Dec 4, 2013

I looked into this, it looks like setting ?format=yaml does work for the XBuilder, but fails to produce any output because of https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/admin/indices/analyze/AnalyzeResponse.java#L122

I'll work on a fix for this.

@ghost ghost assigned dakrone Dec 4, 2013
dakrone added a commit to dakrone/elasticsearch that referenced this issue Dec 4, 2013
@dakrone dakrone closed this as completed in bc9698a Dec 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants