lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2604) add regexpquery to queryparser
Date Tue, 17 Aug 2010 14:09:16 GMT

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message