Hi Ankit,

Try the following approach.
create a query like - [01/01/1900T16:00:00Z/HOUR TO 01/01/1900T18:00:00Z/HOUR ]

Solr will automatically will take care of Rounding off to the HOUR specified.

For eg:
the query - [01/01/1900T16:43:42Z/HOUR TO 01/01/1900T18:55:23Z/HOUR ] 
would be equivalent to 
[01/01/1900T16:00:00Z/HOUR TO 01/01/1900T18:00:00Z/HOUR ]

Regards,
sS


----- Original Message ----
From: "abhatna...@vantage.com" <abhatna...@vantage.com>
To: solr-user@lucene.apache.org
Sent: Wed, March 31, 2010 9:56:38 AM
Subject: Query time only Ranges


Hi All,

I am working on use case - wherein i need to Query to just time ranges
without date component.

search for docs with between 4pm - 6pm 

Approaches-
create something like - [01/01/1900T16:00:00Z TO 01/01/1900T18:00:00Z ] - a
fixed time component

or

create a field for hh only

or may be create a custom field for Time only


Please suggest me which will be a good approach or any other approach if
possible


Ankit



-- 
View this message in context: 
http://n3.nabble.com/Query-time-only-Ranges-tp688831p688831.html
Sent from the Solr - User mailing list archive at Nabble.com.



      

Reply via email to