[jira] [Commented] (LUCENE-7497) Cannot use boolean SHOULD queries with block join?

2016-10-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15586176#comment-15586176
 ] 

ASF subversion and git services commented on LUCENE-7497:
-

Commit b78f2219f45ca64c6a4b7261a87fae89477ec26f in lucene-solr's branch 
refs/heads/master from Mike McCandless
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b78f221 ]

LUCENE-7497: add test case


> Cannot use boolean SHOULD queries with block join?
> --
>
> Key: LUCENE-7497
> URL: https://issues.apache.org/jira/browse/LUCENE-7497
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Michael McCandless
> Fix For: master (7.0), 6.3
>
> Attachments: LUCENE-7497.patch
>
>
> I'm in the process of upgrading http://jirasearch.mikemccandless.com (based 
> on 4.10.x in production today!) to Lucene 6.x, but hit this tricky bug.
> When I run the new test case, I hit this:
> {noformat}
> 1) testBQShouldJoinedChild(org.apache.lucene.search.join.TestBlockJoin)
> java.lang.UnsupportedOperationException
>   at 
> __randomizedtesting.SeedInfo.seed([4D5C76211B3E41E1:48F4B8C556F02AB0]:0)
>   at org.apache.lucene.search.FakeScorer.getChildren(FakeScorer.java:60)
>   at 
> org.apache.lucene.search.join.ToParentBlockJoinCollector$1.setScorer(ToParentBlockJoinCollector.java:190)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:319)
>   at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
>   at 
> org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
>   at 
> org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:91)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
>   at 
> org.apache.lucene.search.join.TestBlockJoin.testBQShouldJoinedChild(TestBlockJoin.java:233)
> {noformat}
> Not sure how to fix it ... it happens because jirasearch runs SHOULD queries 
> against the child docs (one child doc per jira comment) and parent docs text 
> fields (one child doc per jira issue).



--
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



[jira] [Commented] (LUCENE-7497) Cannot use boolean SHOULD queries with block join?

2016-10-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15586170#comment-15586170
 ] 

ASF subversion and git services commented on LUCENE-7497:
-

Commit abbbdc866dd16c34714d48ee7bc4e754423e6039 in lucene-solr's branch 
refs/heads/branch_6x from Mike McCandless
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=abbbdc8 ]

LUCENE-7497: add test case


> Cannot use boolean SHOULD queries with block join?
> --
>
> Key: LUCENE-7497
> URL: https://issues.apache.org/jira/browse/LUCENE-7497
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Michael McCandless
> Attachments: LUCENE-7497.patch
>
>
> I'm in the process of upgrading http://jirasearch.mikemccandless.com (based 
> on 4.10.x in production today!) to Lucene 6.x, but hit this tricky bug.
> When I run the new test case, I hit this:
> {noformat}
> 1) testBQShouldJoinedChild(org.apache.lucene.search.join.TestBlockJoin)
> java.lang.UnsupportedOperationException
>   at 
> __randomizedtesting.SeedInfo.seed([4D5C76211B3E41E1:48F4B8C556F02AB0]:0)
>   at org.apache.lucene.search.FakeScorer.getChildren(FakeScorer.java:60)
>   at 
> org.apache.lucene.search.join.ToParentBlockJoinCollector$1.setScorer(ToParentBlockJoinCollector.java:190)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:319)
>   at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
>   at 
> org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
>   at 
> org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:91)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
>   at 
> org.apache.lucene.search.join.TestBlockJoin.testBQShouldJoinedChild(TestBlockJoin.java:233)
> {noformat}
> Not sure how to fix it ... it happens because jirasearch runs SHOULD queries 
> against the child docs (one child doc per jira comment) and parent docs text 
> fields (one child doc per jira issue).



--
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



[jira] [Commented] (LUCENE-7497) Cannot use boolean SHOULD queries with block join?

2016-10-17 Thread Michael McCandless (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581646#comment-15581646
 ] 

Michael McCandless commented on LUCENE-7497:


A that's right!!  I forgot about this :)  Thank you for the refresher.  
I'll fix my test case to use {{ToParentBlockJoinIndexSearcher}} and confirm it 
passes and push.

> Cannot use boolean SHOULD queries with block join?
> --
>
> Key: LUCENE-7497
> URL: https://issues.apache.org/jira/browse/LUCENE-7497
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Michael McCandless
> Attachments: LUCENE-7497.patch
>
>
> I'm in the process of upgrading http://jirasearch.mikemccandless.com (based 
> on 4.10.x in production today!) to Lucene 6.x, but hit this tricky bug.
> When I run the new test case, I hit this:
> {noformat}
> 1) testBQShouldJoinedChild(org.apache.lucene.search.join.TestBlockJoin)
> java.lang.UnsupportedOperationException
>   at 
> __randomizedtesting.SeedInfo.seed([4D5C76211B3E41E1:48F4B8C556F02AB0]:0)
>   at org.apache.lucene.search.FakeScorer.getChildren(FakeScorer.java:60)
>   at 
> org.apache.lucene.search.join.ToParentBlockJoinCollector$1.setScorer(ToParentBlockJoinCollector.java:190)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:319)
>   at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
>   at 
> org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
>   at 
> org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:91)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
>   at 
> org.apache.lucene.search.join.TestBlockJoin.testBQShouldJoinedChild(TestBlockJoin.java:233)
> {noformat}
> Not sure how to fix it ... it happens because jirasearch runs SHOULD queries 
> against the child docs (one child doc per jira comment) and parent docs text 
> fields (one child doc per jira issue).



--
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



[jira] [Commented] (LUCENE-7497) Cannot use boolean SHOULD queries with block join?

2016-10-17 Thread Adrien Grand (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581498#comment-15581498
 ] 

Adrien Grand commented on LUCENE-7497:
--

This collector needs access to Scorer.getChildren() that BS1 does not expose. 
Fixing BS1 to expose sub scorers would be fairly costly, so we added a note to 
{{ToParentBlockJoinCollector}} to recommend using 
{{ToParentBlockJoinIndexSearcher}}, an IndexSearcher which disables bulk 
scoring:

{code}
 *  This collector MUST be used with {@link ToParentBlockJoinIndexSearcher},
 *  in order to work correctly.
{code}

See also LUCENE-6959.

> Cannot use boolean SHOULD queries with block join?
> --
>
> Key: LUCENE-7497
> URL: https://issues.apache.org/jira/browse/LUCENE-7497
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Michael McCandless
> Attachments: LUCENE-7497.patch
>
>
> I'm in the process of upgrading http://jirasearch.mikemccandless.com (based 
> on 4.10.x in production today!) to Lucene 6.x, but hit this tricky bug.
> When I run the new test case, I hit this:
> {noformat}
> 1) testBQShouldJoinedChild(org.apache.lucene.search.join.TestBlockJoin)
> java.lang.UnsupportedOperationException
>   at 
> __randomizedtesting.SeedInfo.seed([4D5C76211B3E41E1:48F4B8C556F02AB0]:0)
>   at org.apache.lucene.search.FakeScorer.getChildren(FakeScorer.java:60)
>   at 
> org.apache.lucene.search.join.ToParentBlockJoinCollector$1.setScorer(ToParentBlockJoinCollector.java:190)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at 
> org.apache.lucene.search.FilterLeafCollector.setScorer(FilterLeafCollector.java:38)
>   at 
> org.apache.lucene.search.AssertingLeafCollector.setScorer(AssertingLeafCollector.java:43)
>   at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:319)
>   at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
>   at 
> org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
>   at 
> org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:91)
>   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
>   at 
> org.apache.lucene.search.join.TestBlockJoin.testBQShouldJoinedChild(TestBlockJoin.java:233)
> {noformat}
> Not sure how to fix it ... it happens because jirasearch runs SHOULD queries 
> against the child docs (one child doc per jira comment) and parent docs text 
> fields (one child doc per jira issue).



--
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