You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Will Johnson <wj...@GETCONNECTED.COM> on 2007/05/09 19:02:34 UTC

date range search

does solr support date range searching?  i've tried all the examples on
the lucene site as well as using the solr response format and a few
others that seemed nifty but so far I always get query parsing errors.
i know i can easily convert the dates to ints and do ranges that way but
all the documentation seemed to imply it was possibly to do range
searches on real dates, it just didn't give an example that i could see.

 

- will


Re: date range search

Posted by Chris Hostetter <ho...@fucit.org>.
: does solr support date range searching?  i've tried all the examples on
: the lucene site as well as using the solr response format and a few
: others that seemed nifty but so far I always get query parsing errors.
: i know i can easily convert the dates to ints and do ranges that way but
: all the documentation seemed to imply it was possibly to do range
: searches on real dates, it just didn't give an example that i could see.

Good catch will ... Solr uses it's own DateField FieldType and while the
documentation on it makes it very clear what the format should be, there
wasn't anything clarifying to people use to using the Lucene QueryParse
(or who read the Lucene QueryParser docs about dates) that you needed to
use the same format when querying.

I've updated the SolrQuerySyntax wiki with some notes on this, if you have
any ideas for improving the documentation please don't hesitate to make
more changes...

http://wiki.apache.org/solr/SolrQuerySyntax


-Hoss


Re: unsubscribe

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Thu, 2007-05-10 at 10:05 +0100, Kainth, Sachin wrote:
> unsubscribe

Hi Sachin,

you need to send to a different mailing address:
solr-user-unsubscribe@lucene.apache.org

HTH

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


unsubscribe

Posted by "Kainth, Sachin" <Sa...@atkinsglobal.com>.
unsubscribe


This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to.