Github user moshebla commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/416#discussion_r211519256
--- Diff:
solr/core/src/test/org/apache/solr/response/transform/TestChildDocTransformerHierarchy.java
---
@@ -264,7 +309,7 @@ private static Object cleanIndexableField(Object field)
{
}
private static String grandChildDocTemplate(int id) {
- int docNum = id / 8; // the index of docs sent to solr in the
AddUpdateCommand. e.g. first doc is 0
+ int docNum = (id / sumOfDocsPerNestedDocument) %
numberOfDocsPerNestedTest; // the index of docs sent to solr in the
AddUpdateCommand. e.g. first doc is 0
--- End diff --
I tried simplifying the calculation a bit, [here's a
link](https://github.com/apache/lucene-solr/pull/416/files#diff-9fe0ab006f82be5c6a07d5bb6dbc6da0R299).
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]