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

Why convert to XML? Support for nested docs? #109

Closed
vruizext opened this issue Aug 30, 2015 · 2 comments
Closed

Why convert to XML? Support for nested docs? #109

vruizext opened this issue Aug 30, 2015 · 2 comments

Comments

@vruizext
Copy link

If the documents are ruby hashes why convert it to XML, wouldn't be easier to convert to JSON?

Also, with this conversion is impossible to add nested documents. Using JSON, nested documents are added to "_childDocuments" field and Solr processes them automatically. With XML it's necessary to create a new doc and embed it into the parent.

@atz
Copy link

atz commented Nov 9, 2015

👍

@cbeer
Copy link
Contributor

cbeer commented Oct 1, 2016

@vruizext RSolr 2.0.0.pre1 now uses JSON by default (with support for _childDocuments_ and atomic updates). It's not quite as easy as Hash#to_json, but certainly better than building XML documents.

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

3 participants