Hi,
We are using Apache Solr 7.1 via Spring data solr 3.0.11. We have following
structure of our Solr document-
@SolrDocument
@EqualsAndHashCode(of = "id")
public class Input {
@Field
Long id;
@ChildDocument
List<InputIdentifier> inputIdentifiers;
}
public class InputIdentifier {
@Field
Long id;
@Field("type_ss")
List<InputTermType> types;
@Field("value_ss")
List<String> values;
}
Our query for retrieving parent-child documents for some id is-
http://localhost:8983/solr/input/select?fl=*,[child%20parentFilter=id:1556201056928333000]&q=id:1556201056928333000
We observe that for some parent documents, alongside its own child
documents there are other parent documents included as its child. We
verified this by firing block join children query parser and faceted on
_root_
q={!child of=id:1556201056928333000}id:1556201056928333000
The facet contained multiple values for _root_ which contradicts "*To
support nested documents, the schema must include an indexed/non-stored
field _root_. The value of that field is populated automatically and is the
same for all documents in the block, regardless of the inheritance depth*."
Thanks
Saloni Udani