Start Solr with Docker and create a core with our config:
docker run --rm --name solr-example -v $(pwd):/docker -p 8983:8983 -d solr:8.5
docker exec solr-example solr create -p 8983 -c Collection -d /docker/Collection/conf
Index one nested block-join document with two children, each having each one child.
docker exec solr-example curl -s -XPOST "http://localhost:8983/solr/Collection/update?commit=true" -d '
[
{
"id": "1",
"class": "composition",
"children": [
{
"id": "2",
"class": "section",
"children": [
{
"id": "3",
"class": "observation"
}
]
},
{
"id": "4",
"class": "section",
"children": [
{
"id": "5",
"class": "instruction"
}
]
}
]
}
]'