Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7497

Cannot use boolean SHOULD queries with block join?

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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:

      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)
      

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

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikemccand Michael McCandless

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment