I want to use a query like:
sql(select name where id > 10 and id < 100 )
by using Solr or in SolrJ, but do not know how to implement? Can someone explain?
I want to use a query like:
sql(select name where id > 10 and id < 100 )
by using Solr or in SolrJ, but do not know how to implement? Can someone explain?
You need a range query, as described in SolrQuerySyntax. Basically, you collect all relevant documents by using a query range and then select the name field. The syntax is something like:
http://localhost:8983/solr/select?q=id:[10 TO 100]&fl=name
(You will need to escape the URL).