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

Explain doesn't deal with negative only queries completely correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2
    • 3.4
    • search
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: