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

Extended Dismax parser ignores all regular search terms when one search term is using + (dismax behaves differently)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      When using the extended dismax parser with at least one term using + or -, all other search terms are ignored.

      Example:

      (the terms dev and sales are found in the index, the term miau is not part of the index)

      "dev sales miau", "+dev +sales +miau", "dev +sales +miau" all give me 0 results (as expected)

      "dev +sales miau", "dev +sales" or "+sales" return the same number of results (dev and miau terms are ignored)

      The standard dismax parser always treats search terms as +, so "dev sales miau", "+dev +sales miau", "dev +sales miau" return the same number of results.

        Attachments

        1. select_PLUSsales_edismax_9600results.xml
          15 kB
          Nils Kaiser
        2. select_PLUSsales_dismax_9600results.xml
          16 kB
          Nils Kaiser
        3. select_dev_sales_miau_edismax_0results.xml
          3 kB
          Nils Kaiser
        4. select_dev_PLUSsales_miau_edismax_9600results.xml
          24 kB
          Nils Kaiser
        5. select_dev_PLUSsales_miau_dismax_0results.xml
          3 kB
          Nils Kaiser
        6. select_dev_PLUSsales_edismax_9600results.xml
          22 kB
          Nils Kaiser
        7. select_dev_PLUSsales_dismax_553results.xml
          23 kB
          Nils Kaiser

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nilskaiser Nils Kaiser
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: