lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (Reopened) (JIRA)" <>
Subject [jira] [Reopened] (LUCENE-2604) add regexpquery to queryparser
Date Wed, 29 Feb 2012 03:58:19 GMT


Hoss Man reopened LUCENE-2604:

Re-opening ... some issues were pointed out in a recent mailing list thread that definitely
seem like they should be addressed before this is officially released...

* queryparsersyntax.xml doesn't mention this feature at all -- as major new syntax is should
really get it's own section with an example showing the syntax
* queryparsersyntax.xml's section on "Escaping Special Characters" needs to mention that '/'
is a special character
* QueryParser.escape needs to include '/' in the characters it escapes
** ditto for Solr's ClientUtils.escapeQueryChars and SolrPluginUtils.partialEscape
** i've got a patch for this i'll commit as soon as the tests finish.

Also: Given that Yury encountered some real world situations in which the new syntax caused
problems with existing queries, it seems like we should definitely make a note about this
possibility more promonient ... i'm not sure if it makes sense in MIGRATE.txt but at a minimum
it seems like the existing CHANGES.txt entry should mention it, maybe something like...

* LUCENE-2604: Added RegexpQuery support to QueryParser. Regular expressions
  are now directly supported by the standard queryparser using the syntax... 
     fieldName:/expression/ OR /expression against default field/
  Users who wish to search for literal "/" characters are advised to 
  backslash-escape or quote those characters as needed. 
  (Simon Willnauer, Robert Muir)

> add regexpquery to queryparser
> ------------------------------
>                 Key: LUCENE-2604
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/queryparser
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>         Attachments: LUCENE-2604.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message