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

Complex q param in Streaming Expression results in a bad query

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: SolrJ

      Description

      When providing an expression like

      stream=search(people, fl="id,first", sort="first asc", q="presentTitles:\"chief executive officer\" AND age:[36 TO *]")
      

      the following error is seen.

      no field name specified in query and no default specified via 'df' param
      

      I believe the issue is related to the \" (escaped quotes) and the spaces in the q field. If I remove the spaces then the query returns results as expected (though I've yet to validate if those results are accurate).

      This requires some investigation to get down to the root cause. I would like to fix it before Solr 6 is cut.

        Attachments

        1. SOLR-8409.patch
          0.9 kB
          Dennis Gove
        2. SOLR-8409.patch
          5 kB
          Dennis Gove

          Issue Links

            Activity

              People

              • Assignee:
                dpgove Dennis Gove
                Reporter:
                dpgove Dennis Gove
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: