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

xtendedDismaxQParser (edismax) makes pf* require search term exactly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 6.5
    • None
    • query parsers
    • None

    Description

      Request like:

          "params":{
            "q": "cat AND dog",
            "q.op": "AND",
            "defType":"edismax",
            "qf":"description",
            "pf2":"description"
      }
      

      produces query like this:

      "parsedquery_toString":"+(+(description.en:cat) +(description.en:dog)) (+(description.en:\"cat dog\"))"
      

      Solr 4.6.1 produces different parsing of this query:

      "parsedquery_toString": "+(+(description.en:cat) +(description.en:dog)) (description.en:\"cat dog\")",
      

      Replacing q.op=AND with q.op=OR in newer Solr produces same query as old Solr despite the fact that it would seem that this change should not make a difference.

      This issue is probably related to SOLR-8812 - looks like it is just one more case of same problem. It also would mean that change occurred in version range specified there - unfortunately I would not be able to test that.

      This looks like a change in behaviour is not quite expected: now introducing pf2 searches for documents that must have 'cat dog' phrase instead of just boosting such documents.

      Please let me know if more information is required.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mar-kolya Nikolay Martynov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: