Hi Sandhya,

On a different note - if you are using Solr1.4 or later, take a look at solr 
trie range support.

http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/

Ankit


-----Original Message-----
From: Sandhya Agarwal [mailto:sagar...@opentext.com] 
Sent: Wednesday, April 14, 2010 7:56 AM
To: solr-user@lucene.apache.org
Subject: RE: solr numeric range queries

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

Reply via email to