[ 
https://issues.apache.org/jira/browse/SOLR-7220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120197#comment-15120197
 ] 

Scott Blum commented on SOLR-7220:
----------------------------------

I believe this patch created a bug.  Regular expression queries that start with 
an escaped forward-slash don't work anymore.

{code}
Works: foo:/ab\/c/
Does not work: foo:/\/abc/
Work around, put the beginning slash in a character class: foo:/[\/]abc/
{code}


I have attached a patch to fix.

> comments for query strings
> --------------------------
>
>                 Key: SOLR-7220
>                 URL: https://issues.apache.org/jira/browse/SOLR-7220
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>             Fix For: 5.3
>
>         Attachments: SOLR-7220.patch
>
>
> It's often very useful to be able to put comments in a large query string, or 
> temporarily comment out part of a large query string.
> This feature adds C-style comments that may be nested.
> Query Comments Example:
> {code}
> description:HDTV /* TODO: +promotion:tv +promotion_date:[NOW/DAY-7DAYS TO 
> NOW/DAY+1DAY] */
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to