Github user moshebla commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/416#discussion_r205125247
  
    --- Diff: 
solr/core/src/java/org/apache/solr/response/transform/ChildDocTransformerFactory.java
 ---
    @@ -67,7 +73,9 @@
     
       public static final String PATH_SEP_CHAR = "/";
       public static final String NUM_SEP_CHAR = "#";
    -  private static final String sRootFilter = "*:* NOT " + 
NEST_PATH_FIELD_NAME + ":*";
    +  private static final BooleanQuery rootFilter = new BooleanQuery.Builder()
    +      .add(new BooleanClause(new MatchAllDocsQuery(), 
BooleanClause.Occur.MUST))
    +      .add(new BooleanClause(new WildcardQuery(new 
Term(NEST_PATH_FIELD_NAME, new BytesRef("*"))), 
BooleanClause.Occur.MUST_NOT)).build();
    --- End diff --
    
    My bad, I'll fix this in the next commit.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to