Hi folks,
I'm currently trying to benchmark some regexp queries and found that the
default QueryParser (o.a.l.queryparser.classic.QueryParser) that luceneutil
is using is not able to parse regexps such as: "[abcde]+" or "a{1,5}".
The current workaround is to add another "if" logic in the TaskParser so
that when it sees "regexp" tag it will created a RegexpQuery without going
through QueryParser, but I still wonder whether that QueryParser is only
able to parse WildcardQuery but not RegexpQuery and do we have another
QueryParser that could parse the RegexpQuery?
Best,
Patrick
I'm currently trying to benchmark some regexp queries and found that the
default QueryParser (o.a.l.queryparser.classic.QueryParser) that luceneutil
is using is not able to parse regexps such as: "[abcde]+" or "a{1,5}".
The current workaround is to add another "if" logic in the TaskParser so
that when it sees "regexp" tag it will created a RegexpQuery without going
through QueryParser, but I still wonder whether that QueryParser is only
able to parse WildcardQuery but not RegexpQuery and do we have another
QueryParser that could parse the RegexpQuery?
Best,
Patrick