Regex Query

Hi!

I looked though the guide and googled but couldn't find anything like
a RegexQueryBuilder. Is there any such thing in ElasticSearch?
I'd be using it in conjunction with a number of term queries that
would cut down the number of possible matching documents to a handful,
and for those I'd like to use a regex instead of the less powerful
span near queries etc., to select those documents that contain dates
(any date, not a specific one) etc.

Is there a way to do this?

Regards
Felix

Its not exposed currently in elasticsearch (the lucene one), for reasons of
performance, the idea (at least back when it was not included) was to wait
for Lucene 4.0 which includes a faster implementation. Regex is one of those
things that new users can easily shot themselves in the foot with,
especially with the current implementation.

On Thu, Sep 1, 2011 at 4:55 PM, Felix Sappelt f.sappelt@clueda.com wrote:

Hi!

I looked though the guide and googled but couldn't find anything like
a RegexQueryBuilder. Is there any such thing in Elasticsearch?
I'd be using it in conjunction with a number of term queries that
would cut down the number of possible matching documents to a handful,
and for those I'd like to use a regex instead of the less powerful
span near queries etc., to select those documents that contain dates
(any date, not a specific one) etc.

Is there a way to do this?

Regards
Felix

Thanks for your answer! I can see that's the sensible decision, I
should be able to solve my problem another way.

On 1 Sep., 17:39, Shay Banon kim...@gmail.com wrote:

Its not exposed currently in elasticsearch (the lucene one), for reasons of
performance, the idea (at least back when it was not included) was to wait
for Lucene 4.0 which includes a faster implementation. Regex is one of those
things that new users can easily shot themselves in the foot with,
especially with the current implementation.

On Thu, Sep 1, 2011 at 4:55 PM, Felix Sappelt f.sapp...@clueda.com wrote:

Hi!

I looked though the guide and googled but couldn't find anything like
a RegexQueryBuilder. Is there any such thing in Elasticsearch?
I'd be using it in conjunction with a number of term queries that
would cut down the number of possible matching documents to a handful,
and for those I'd like to use a regex instead of the less powerful
span near queries etc., to select those documents that contain dates
(any date, not a specific one) etc.

Is there a way to do this?

Regards
Felix