Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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
Attachments
Issue Links
- relates to
-
SOLR-14139 Support backtick phrase queries in Streaming Expressions
- Closed
- links to
Activity
-
- Time Spent:
- 10m
-
magibney opened a new pull request, #1781:
URL: https://github.com/apache/solr/pull/1781
See: SOLR-10894
-
- Time Spent:
- 10m
-
sonatype-lift[bot] commented on PR #1781:
URL: https://github.com/apache/solr/pull/1781#issuecomment-1634175546
## Sonatype Lift is retiring
Sonatype Lift will be retiring on <b>Sep 12, 2023</b>, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.
<b>[📖 Read about the impacts and timeline](https://www.sonatype.com/lift-retirement)</b>
-
- Time Spent:
- 10m
-
HoustonPutman commented on PR #1781:
URL: https://github.com/apache/solr/pull/1781#issuecomment-1660754431
Hey @magibney I have a change to make this just generic for any number of escapes of the quote. (for example if there was an escaped quote in a phrase query)
Mind if I push to your branch?
-
- Time Spent:
- 10m
-
github-actions[bot] commented on PR #1781:
URL: https://github.com/apache/solr/pull/1781#issuecomment-1945989327
This PR had no visible activity in the past 60 days, labeling it as stale. Any new activity will remove the stale label. To attract more reviewers, please tag someone or notify the dev@solr.apache.org mailing list. Thank you for your contribution!