lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr Oleg Savrasov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5553) ToChildBlockJoinQuery becomes crazy on wrong subquery
Date Thu, 19 Dec 2013 09:04:07 GMT

    [ https://issues.apache.org/jira/browse/SOLR-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852751#comment-13852751
] 

Dr Oleg Savrasov commented on SOLR-5553:
----------------------------------------

Proposed patch is provided, see attach

> ToChildBlockJoinQuery becomes crazy on wrong subquery
> -----------------------------------------------------
>
>                 Key: SOLR-5553
>                 URL: https://issues.apache.org/jira/browse/SOLR-5553
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.6
>            Reporter: Dr Oleg Savrasov
>              Labels: patch
>         Attachments: 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-C5EAD32A1EB2@sheffield.ac.uk%3E



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

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


Mime
View raw message