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

Edismax query parser fails to parse q=(*:*)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Component/s: query parsers
    • Environment:

      Solr 5.5.1

      Description

      The Edismax query parser does parse the query (*:*) as a exact text match instead of a match all documents.

      Setting the debugQuery param to true and the query *:* we get this json:

      "debug": {
         "rawquerystring": "*:*",
         "querystring": "*:*",
         "parsedquery": "(+MatchAllDocsQuery(*:*))/no_coord",
         "parsedquery_toString": "+*:*",
         ...
      }
      

      But with the query (*:*) the Edismax query parser returns a DisjunctionMaxQuery like shown in the following json:

      "debug": {
         "rawquerystring": "(*:*)",
         "querystring": "(*:*)",
         "parsedquery": "(+DisjunctionMaxQuery((text:*\\:*)))/no_coord",
         "parsedquery_toString": "+(text:*\\:*)",
         "explain": {},
         "QParser": "ExtendedDismaxQParser",
         ...
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              FonsoNoriega Alfonso Noriega Meneses
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: