Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10527

edismax with sow=false fails to create dismax-per-term queries when any field is boosted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5.1, 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      When sow=false, the edismax query parser creates dismax-per-field queries when field analysis is different enough that query structures differ per field (stopwords in one field only, e.g.). (By contrast, dismax-per-term queries are produced when sow=true or when query structures are the same across all fields.)

      However, the code to determine whether per-field query structures differed wasn't aware of boost queries. As a result, when sow=false and boost are specified for at least one field (e.g. q={!edismax sow=false}text&qf=fieldA^2+fieldB^4), dismax-per-field queries are always produced, even when per-field query structures are equivalent.

        Activity

        Hide
        steve_rowe Steve Rowe added a comment -

        Patch with fix and tests.

        Committing shortly.

        Show
        steve_rowe Steve Rowe added a comment - Patch with fix and tests. Committing shortly.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 141961b00a062422b078b327ba334978ad97604e in lucene-solr's branch refs/heads/branch_6x from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=141961b ]

        SOLR-10527: edismax with sow=false fails to create dismax-per-term queries when any field is boosted

        Show
        jira-bot ASF subversion and git services added a comment - Commit 141961b00a062422b078b327ba334978ad97604e in lucene-solr's branch refs/heads/branch_6x from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=141961b ] SOLR-10527 : edismax with sow=false fails to create dismax-per-term queries when any field is boosted
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 8b27b82babed40e72eceaec0765d448247a7d322 in lucene-solr's branch refs/heads/master from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8b27b82 ]

        SOLR-10527: edismax with sow=false fails to create dismax-per-term queries when any field is boosted

        Show
        jira-bot ASF subversion and git services added a comment - Commit 8b27b82babed40e72eceaec0765d448247a7d322 in lucene-solr's branch refs/heads/master from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8b27b82 ] SOLR-10527 : edismax with sow=false fails to create dismax-per-term queries when any field is boosted
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e126498cef019f573c111113ba7fa3539abcddce in lucene-solr's branch refs/heads/branch_6_5 from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e126498 ]

        SOLR-10527: edismax with sow=false fails to create dismax-per-term queries when any field is boosted

        Conflicts:
        solr/CHANGES.txt
        solr/core/src/test/org/apache/solr/search/TestExtendedDismaxParser.java

        Show
        jira-bot ASF subversion and git services added a comment - Commit e126498cef019f573c111113ba7fa3539abcddce in lucene-solr's branch refs/heads/branch_6_5 from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e126498 ] SOLR-10527 : edismax with sow=false fails to create dismax-per-term queries when any field is boosted Conflicts: solr/CHANGES.txt solr/core/src/test/org/apache/solr/search/TestExtendedDismaxParser.java
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f577562a647c26af28110c168d8d62d8c2a2fa34 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=f577562 ]

        SOLR-10527: move CHANGES entry to 6.5.1 section

        Show
        jira-bot ASF subversion and git services added a comment - Commit f577562a647c26af28110c168d8d62d8c2a2fa34 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=f577562 ] SOLR-10527 : move CHANGES entry to 6.5.1 section
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit ffe61ff2ad82c355577ea827067dc7196a5e2ca0 in lucene-solr's branch refs/heads/master from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ffe61ff ]

        SOLR-10527: move CHANGES entry to 6.5.1 section

        Show
        jira-bot ASF subversion and git services added a comment - Commit ffe61ff2ad82c355577ea827067dc7196a5e2ca0 in lucene-solr's branch refs/heads/master from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ffe61ff ] SOLR-10527 : move CHANGES entry to 6.5.1 section
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit dfc0dd67f7fe45fbf62d88652952ec3e2b3e0070 in lucene-solr's branch refs/heads/branch_6_5 from Steve Rowe
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dfc0dd6 ]

        SOLR-10527: remove unused import

        Show
        jira-bot ASF subversion and git services added a comment - Commit dfc0dd67f7fe45fbf62d88652952ec3e2b3e0070 in lucene-solr's branch refs/heads/branch_6_5 from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dfc0dd6 ] SOLR-10527 : remove unused import

          People

          • Assignee:
            steve_rowe Steve Rowe
            Reporter:
            steve_rowe Steve Rowe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development