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 Gavin <ga...@beyondm.net> on 2008/02/06 05:44:09 UTC

Date Range Search

Hi,
	Can some one tell me how I can achieve date range searches? For
instance if I save the DOB as a solr date field how can I do a search to
get the people,
	1. Who are older than 30 years
	2. Who were born in 1975

etc. Greatly appreciate your help.

Thanks,
-- 
Gavin Selvaratnam,
Project Leader

hSenid Mobile Solutions
Phone: +94-11-2446623/4 
Fax: +94-11-2307579 

Web: http://www.hSenidMobile.com 
 
Make it happen

Disclaimer: This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to which they are addressed. The content and opinions 
contained in this email are not necessarily those of hSenid Software International. 
If you have received this email in error please contact the sender.


Re: Date Range Search

Posted by Leonardo Santagada <sa...@gmail.com>.
http://www.nabble.com/date-math-syntax-tc15161881.html#a15170923

On 06/02/2008, at 02:44, Gavin wrote:

> Hi,
> 	Can some one tell me how I can achieve date range searches? For
> instance if I save the DOB as a solr date field how can I do a  
> search to
> get the people,
> 	1. Who are older than 30 years
> 	2. Who were born in 1975
>
> etc. Greatly appreciate your help.
>
> Thanks,
> -- 
> Gavin Selvaratnam,
> Project Leader
>
> hSenid Mobile Solutions
> Phone: +94-11-2446623/4
> Fax: +94-11-2307579
>
> Web: http://www.hSenidMobile.com
>
> Make it happen
>
> Disclaimer: This email and any files transmitted with it are  
> confidential and intended solely for
> the use of the individual or entity to which they are addressed. The  
> content and opinions
> contained in this email are not necessarily those of hSenid Software  
> International.
> If you have received this email in error please contact the sender.
>

--
Leonardo Santagada




Re: Date Range Search

Posted by Sourabh1 <so...@cisco.com>.
For date range search, use <<alldate>>:[date1 T23:59:59Z TO date2
T23:59:59Z]. 

Thanks,
Sourabh

Gavin-39 wrote:
> 
> Hi,
> 	Can some one tell me how I can achieve date range searches? For
> instance if I save the DOB as a solr date field how can I do a search to
> get the people,
> 	1. Who are older than 30 years
> 	2. Who were born in 1975
> 
> etc. Greatly appreciate your help.
> 
> Thanks,
> -- 
> Gavin Selvaratnam,
> Project Leader
> 
> hSenid Mobile Solutions
> Phone: +94-11-2446623/4 
> Fax: +94-11-2307579 
> 
> Web: http://www.hSenidMobile.com 
>  
> Make it happen
> 
> Disclaimer: This email and any files transmitted with it are confidential
> and intended solely for 
> the use of the individual or entity to which they are addressed. The
> content and opinions 
> contained in this email are not necessarily those of hSenid Software
> International. 
> If you have received this email in error please contact the sender.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Date-Range-Search-tp15305477p21314862.html
Sent from the Solr - User mailing list archive at Nabble.com.