We can use solr range query like:
http://localhost:8983/solr/select?q=queryStr&fq=x:%5B10 TO 100] AND y:[20 TO 300]
or :
http://localhost:8983/solr/select?q=queryStr&fq=x:%5B10 TO 100]&fq=y:[20 TO 300]
How to make this range query by using solrJ ?
You can use the addFilterQuery() method on the SolrQuery class. Just pass the filter query as is (“
x:[10 TO 100] AND y:[20 TO 300]“)