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

ToChildBlockJoinQuery becomes crazy on wrong subquery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.6.1, 6.0
    • modules/join
    • New

    Description

      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

      Attachments

        1. LUCENE-5375.patch
          9 kB
          Dr Oleg Savrasov
        2. SOLR-5553-1.patch
          13 kB
          Dr Oleg Savrasov
        3. SOLR-5553-insufficient_assertions.patch
          9 kB
          Dr Oleg Savrasov
        4. SOLR-5553.patch
          8 kB
          Dr Oleg Savrasov

        Activity

          People

            Unassigned Unassigned
            osavrasov Dr Oleg Savrasov
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified