On Wed, Oct 12, 2011 at 10:55 PM, Kissue Kissue <kissue...@gmail.com> wrote: > Hi > > I am using solr 3.3 and solrJ. I have two date fields launch_date and > expiry_date. Now i want to be able to do a search for products that have not > expired. So basically i want to select products with launch_date < today AND > expiry_date > Today. Any pointers on how i can formulate such a query to > Solr?
The today part would need to be handled by your front-end, but most languages can easily do that. For the range query on the date, please see examples in http://wiki.apache.org/solr/SolrQuerySyntax . More can also be found through Google. Regards, Gora