[ https://issues.apache.org/jira/browse/LUCENE-5375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15007414#comment-15007414 ]
Mikhail Khludnev commented on LUCENE-5375: ------------------------------------------ {code} Caused by: java.lang.IllegalStateException: child query must only match non-parent docs, but parent docID=21474 matched childScorer=class org.apache.lucene.search.TermScorer {code} I'd like to raise an issue to improve the message. I suppose we need to put children and parent filter _queries_ into text to let users check the document in the intersection. > ToChildBlockJoinQuery becomes crazy on wrong subquery > ----------------------------------------------------- > > Key: LUCENE-5375 > URL: https://issues.apache.org/jira/browse/LUCENE-5375 > Project: Lucene - Core > Issue Type: Bug > Components: modules/join > Affects Versions: 4.6 > Reporter: Dr Oleg Savrasov > Labels: patch > Fix For: 4.6.1, Trunk > > Attachments: SOLR-5553-1.patch, > SOLR-5553-insufficient_assertions.patch, SOLR-5553.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > If user supplies wrong subquery to ToParentBlockJoinQuery it reasonably > throws IllegalStateException. > (http://lucene.apache.org/core/4_0_0/join/org/apache/lucene/search/join/ToParentBlockJoinQuery.html > 'The child documents must be orthogonal to the parent documents: the wrapped > child query must never return a parent document.'). However > ToChildBlockJoinQuery just goes crazy silently. I want to provide simple > patch for ToChildBlockJoinQuery with if-throw clause and test. > See > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201311.mbox/%3cf415ce3a-ebe5-4d15-adf1-c5ead32a1...@sheffield.ac.uk%3E -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org