Skip to content

Instantly share code, notes, and snippets.

@vthacker
Created February 28, 2014 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vthacker/9270623 to your computer and use it in GitHub Desktop.
Save vthacker/9270623 to your computer and use it in GitHub Desktop.
JSON Block Join Example
{
"add": [
{
"id": "1",
"title": "Solr adds block join support",
"content_type": "parentDocument",
"_childDocuments_": [
{
"id": "2",
"comments": "SolrCloud supports it too!"
}
]
},
{
"id": "3",
"title": "Lucene and Solr 4.5 is out",
"content_type": "parentDocument",
"_childDocuments_": [
{
"id": "4",
"comments": "Lots of new features"
}
]
}
]
}
@naidusm
Copy link

naidusm commented Oct 30, 2015

Hi Varun,

Could you please explain how to create schema.xml for the above documents?

Thanks,
Naidu

@mvarshney1988
Copy link

yes , can you please share schema.xml and what about if we have two nested docs with diff key name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment