Solr
  1. Solr
  2. SOLR-119

debugQuery explain info doesn't work for pure negative queries

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: search
    • Labels:
      None

      Description

      SOLR-80 added support for purely negative queries to SolrIndexSearcher - but this was done at a low enough level that the RequestHandlers don't know when the query is being internal modified, and the debugQuery info is not accurate, you can see this by installing the example setup and looking at this URL...

      http://localhost:8983/solr/select/?q=-solr&version=2.2&start=0&rows=1&indent=on&fl=id,score&debugQuery=1

      ...note the explain issue ways hte document doesn't match.

      this is a fairly minor issue, since trying to get score information for a completley negative query is fairly meaningless; even if the score info were correct it would just say something to the efect of "1.0 : MatchAllDocs"

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development