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

Explain doesn't deal with negative only queries completely correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.4
    • Component/s: search
    • Labels:
      None

      Description

      If you do a negative only query, such as -author:[* TO *], explain returns NaN for the score. The query executes correctly, however.

      To execute negative only queries, Solr calls QueryUtils.makeQueryable, and everything works correctly. But explain doesn't call this, and coord ends up dividing by zero.

      One could fix this by fixing the call to explain, which is easy, or perhaps by fixing the query parser to generate the query that way in the first place. (It looks like extended dismax does the latter, and so shouldn't have problems).

        Attachments

        1. SOLR-2636
          0.7 kB
          Tom Hill

          Issue Links

            Activity

              People

              • Assignee:
                yseeley@gmail.com Yonik Seeley
                Reporter:
                tomsolr Tom Hill
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: