You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Christian Spitzlay (Jira)" <ji...@apache.org> on 2020/03/24 13:31:00 UTC
[jira] [Commented] (SOLR-10894) Streaming expressions handling of
escaped special characters bug
[ https://issues.apache.org/jira/browse/SOLR-10894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17065773#comment-17065773 ]
Christian Spitzlay commented on SOLR-10894:
-------------------------------------------
Now (>= 8.5) backticks are possible as quote character for phrases. Does that mean there now is a change to the way double quotes are to be escaped inside the search term?
> Streaming expressions handling of escaped special characters bug
> ----------------------------------------------------------------
>
> Key: SOLR-10894
> URL: https://issues.apache.org/jira/browse/SOLR-10894
> Project: Solr
> Issue Type: Bug
> Components: streaming expressions
> Reporter: Houston Putman
> Priority: Major
> Attachments: SOLR-10894.patch
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org