Skip to content

Add toString and toXContent to IndexResponse#3871

Closed
s1monw wants to merge 1 commit intoelastic:masterfrom
s1monw:index_response_to_string
Closed

Add toString and toXContent to IndexResponse#3871
s1monw wants to merge 1 commit intoelastic:masterfrom
s1monw:index_response_to_string

Conversation

@s1monw
Copy link
Copy Markdown
Contributor

@s1monw s1monw commented Oct 10, 2013

Currently IndexResponse does not like other responses implement ToXContent and neither a toString method. We should try to be consistent here.

@dadoonet
Copy link
Copy Markdown
Contributor

+1!

@martijnvg
Copy link
Copy Markdown
Member

Looks good, but should we do this consistently for all response classes? (moving ToXContent from rest code to response classes and implement toString). Like: UpdateResponse, DeleteResponse, SearchResponse, ExplainResponse, DeleteByQueryResponse etc?

@s1monw
Copy link
Copy Markdown
Contributor Author

s1monw commented Oct 11, 2013

I completely agree - I will look into this soon hopefully

@s1monw
Copy link
Copy Markdown
Contributor Author

s1monw commented Mar 24, 2015

closing for now this didn't go anywhere

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

Successfully merging this pull request may close these issues.

4 participants