[
https://issues.apache.org/jira/browse/LUCENE-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated LUCENE-2604:
--------------------------------
Attachment: LUCENE-2604.patch
Thanks Simon: you are right! I updated the patch with your test
I modified the grammar slightly to allow "/" when escaped:
{noformat}
<REGEXPTERM: "/" (~[ "/" ] | "\\/" )* "/" >
{noformat}
Additionally i removed any un-escaping in QP itself so that it passes
through unchanged to RegexpQuery: this way you don't have to
double-escape operators.
> add regexpquery to queryparser
> ------------------------------
>
> Key: LUCENE-2604
> URL: https://issues.apache.org/jira/browse/LUCENE-2604
> Project: Lucene - Java
> Issue Type: New Feature
> Components: QueryParser
> Affects Versions: 4.0
> Reporter: Robert Muir
> Attachments: LUCENE-2604.patch, LUCENE-2604.patch
>
>
> patch that adds RegexpQuery if you /enter an expression between slashes like
> this/
> i didnt do the contrib ones but could add it there too if it seems like a
> good idea.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]