Thanks Erik. I did read through the document mentioned, but was a little surprised that there is no direct syntax for "<=", "<" etc;. Hence, was confirming.
Thanks, Sandhya -----Original Message----- From: Erik Hatcher [mailto:erik.hatc...@gmail.com] Sent: Wednesday, April 14, 2010 5:09 PM To: solr-user@lucene.apache.org Subject: Re: solr numeric range queries On Apr 14, 2010, at 6:09 AM, Sandhya Agarwal wrote: > Hello, > > As I understand, we have to use the syntax { * TO <value> } or [ * > TO <value> ], for queries less than <value> or less than or equal > to <value>, etc; > > Where <value> is a numeric field. > > There is no direct < <value> or <= <value> syntax supported. Is that > correct ? That's correct. The query parser syntax is pretty full described here <http://wiki.apache.org/solr/SolrQuerySyntax> and the link from there to the Lucene query parser syntax. Erik