Re: Solr Range Queries with Field value

2013-05-15 Thread Chris Hostetter
: After some research the following syntax worked : start_time_utc_epoch:[1970-01-01T00:00:00Z TO : _val_:"merchant_end_of_day_in_utc_epoch"]) that syntax definitely does not work ... i don't know if there is a typo in your mail, or if you are just getting strange results that happen to look li

Re: Solr Range Queries with Field value

2013-04-30 Thread Indika Tantrigoda
Yes, the SQL statement is what I am trying to achieve. As for the merchant_end_of_day_in_utc_epoch, we map the time to start of epoch and convert that to UTC, so that all the merchants are in the same timezone which would make it easier to query for open ones. For the use case when we need to dete

Re: Solr Range Queries with Field value

2013-04-30 Thread Arun Rangarajan
Erick, I believe Indika wants to do this SQL WHERE clause in Solr: WHERE start_time_utc_epoch >= '1970-01-01T00:00:00Z' AND start_time_utc_epoch <= merchant_end_of_day_in_utc_epoch On Tue, Apr 30, 2013 at 11:49 AM, Erick Erickson wrote: > Could you define your use-case in some more detail? On t

Re: Solr Range Queries with Field value

2013-04-30 Thread Erick Erickson
Could you define your use-case in some more detail? On the surface, this query doesn't really make a lot of sense. How would merchant_end_of_day_in_utc_epoch be determined? Presumably there are zillions of values across your index for this value, depending on the document. Which one should be used?