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

Brian Feldman commented on LUCENE-9718:
---------------------------------------

1) User level documentation upstream in Solr or ElasticSearch there is limited 
documentation. Receiving no error or results back from a search system, some 
users might simply believe no matches exist, and not that their syntax is not 
supported.  I did not realize it was an issue until playing around with it.

2) Besides being documented, the code can be improved, only the initial parsing 
code would need updating.  It does not affect logic for the running of the 
automaton. And since there is already code to support the character classes, 
logically the parsing code should be completed to support the trailing 
quantifiers, in order to finish the implementation for character classes.

> REGEX Pattern Search, character classes with quantifiers do not work
> --------------------------------------------------------------------
>
>                 Key: LUCENE-9718
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9718
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 7.7.3, 8.6.3
>            Reporter: Brian Feldman
>            Priority: Minor
>              Labels: Documentation, RegEx
>
> Character classes with a quantifier do not work, no error is given and no 
> results are returned. For example \d\{2} or \d\{2,3} as is commonly written 
> in most languages supporting regular expressions, simply and quietly does not 
> work.  A user work around is to write them fully out such as \d\d or 
> [0-9][0-9] or as [0-9]\{2,3} .
>  
> This inconsistency or limitation is not documented, wasting the time of users 
> as they have to figure this out themselves. I believe this inconsistency 
> should be clearly documented and an effort to fixing the inconsistency would 
> improve pattern searching.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to