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

Streaming expressions handling of escaped special characters bug

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • streaming expressions
    • None

    Description

      Streaming expressions expect all special characters in named parameter values to be singly escaped. Since queries can contain strings surrounded by double quotes, double-escaping is necessary.

      Given the following query:
      summary:"\"This is a summary\"+"
      A streaming expression would require surrounding the query with double quotes, therefore every special character in the query should be escaped:
      select(collection,q="\"\\\"This is a summary\\\"\\\+\"",....)

      Streaming expressions should unescape the strings contained within double quotes, however currently they are only unescaping \" -> ". Therefore it is impossible to query for text fields containing double quotes. Also other special characters are not unescaped; this inconsistency causes confusion.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            houstonputman Houston Putman

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                Slack

                  Issue deployment