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.
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.
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.