use Solr's Filter Query parameter "fq":
fq=x:[10 TO 100]&fq=y:[20 TO 300]&fl=title
-Yao
huenzhao wrote:
>
> Hi all:
>
> Suppose that my index have 3 fields: title, x and y.
>
> I know one range(10 < x < 100) can query liks this:
>
> http://localhost:8983/solr/select?q=x:[10 TO 100]&fl=title
>
> If I want to two range(10 < x <100 AND 20 < y < 300) query like
>
> SQL(select title where x>10 and x < 100 and y > 20 and y < 300)
>
> by using Solr range query or SolrJ, but not know how to implement. Anybody
> know ? Thanks
>
> Email: enzhao...@gmail.com
>
>
--
View this message in context:
http://www.nabble.com/A-big-question-about-Solr-and-SolrJ-range-query---tp24384416p24384540.html
Sent from the Solr - User mailing list archive at Nabble.com.