On Wed, May 28, 2014 at 1:41 AM, Lokn <nlokesh...@gmail.com> wrote:
> Thanks for the reply.
> I am using edismax for the query parsing. Still it's not working.
> Instead of using local params, if I use the field directly then regex is
> working fine.

It's not for me...

This does not work:
http://localhost:8983/solr/query?defType=edismax&q=/[A-Z]olr/&debugQuery=true

But this does work:
http://localhost:8983/solr/query?defType=lucene&q=/[A-Z]olr/&debugQuery=true

edismax was developed before the lucene query parser syntax was
changed to include regex, so maybe that's the issue.
Not that "/" was a great character to use for regex... it's too widely
used in URLs, paths, etc.  I'd almost argue against following lucene
syntax in this case and enabling regex a different way.


-Yonik
http://heliosearch.org - facet functions, subfacets, off-heap filters&fieldcache

Reply via email to