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

    https://github.com/apache/lucene-solr/pull/416#discussion_r205119233
  
    --- 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 --
    
    I think I suggested using DocValuesExistsQuery which only depends on the 
existence of DocValues and should be efficient


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to