Skip to content

Instantly share code, notes, and snippets.

View alisatl's full-sized avatar

Alisa Zhila alisatl

View GitHub Profile
{
"response":{"numFound":1,"start":0,"docs":[
{
"text":["Great post about Solr"]}]
},
"facets":{
"count":1,
"sentiment":{
"buckets":[{
"val":"Alice",
{
"response":{"numFound":1,"start":0,"docs":[
{
"sentiment":["positive"],
"author":["Bob"],
"text":["Great post about Solr"],
"date":["2015-04-10T11:30:00Z"],
"path":["2.blog-posts.comments"],
"id":"91701-23917",
"_childDocuments_":[
{
"response":{"numFound":2,"start":0,"docs":[
{
"path":["2.blog-posts.title"],
"id":"24397-38220",
"text":["About useful features of Solr"],
"_childDocuments_":[
{
"path":["3.blog-posts.title.keywords"],
"type":["search engine"],
{
"response":{"numFound":4,"start":0,"docs":[
{
"path":["2.blog-posts.body"],
"id":"44720-23460",
"text":["Here I write how useful Solr is..."]},
{
"path":["2.blog-posts.title"],
"id":"44720-14932",
"text":["My Post #1: About Solr and Other Search Engines"]},
{
"response":{"numFound":1,"start":0,"docs":[
{
"date":["Fri Apr 10 09:00:00 UTC 2015"],
"path":["1.blog-posts"],
"id":"44720",
"author":["Alice"],
"_version_":1531701766457917440,
"_childDocuments_":[
{
{
"response":{"numFound":1,"start":0,"docs":[
{
"sentiment":["neutral"],
"author":["Dave"],
"text":["But it only appeared in Solr 5.5, after the post was written"],
"date":["2016-04-10T12:00:00Z"],
"path":["3.blog-posts.comments.replies"],
"id":"24118-25993"
}]
{
"response":{"numFound":1,"start":0,"docs":[
{
"date":["Fri Apr 10 09:00:00 UTC 2015"],
"path":["1.blog-posts"],
"id":"91701",
"author":["Alice"]
]
}}
{
"response":{"numFound":1,"start":0,"docs":[
{
"sentiment":["positive"],
"author":["Bob"],
"text":["Great post about Solr"],
"date":["2015-04-10T11:30:00Z"],
"path":["2.blog-posts.comments"],
"id":"91701-23917"}]
}}
{
"response":{"numFound":1,"start":0,"docs":[
{
"sentiment":["positive"],
"author":["Bob"],
"text":["Great post about Solr"],
"date":["2015-04-10T11:30:00Z"],
"path":["2.blog-posts.comments"],
"id":"91701-23917",
"_childDocuments_":[
@alisatl
alisatl / example-data-solr.json
Last active May 2, 2016 22:08
This file accompanies my blog post on nested document handling capabilities of Solr 5.3.1 and 5.5.0
[
{
"date": "2015-04-10T9:00:00Z",
"path": "1.blog-posts",
"_childDocuments_": [
{
"path": "2.blog-posts.body",
"2.blog-posts.body-id": "50224",
"id": "17252-18262",
"_childDocuments_": [