Reputation: 11
example :
select distinct(city) from employee_details where name="JOHN";
How to form select distinct(parameter) query in Apache Solr ?
Upvotes: 0
Views: 229
Reputation: 2222
You can use facets to produce distinct values
q=name:JOHN&facet=true&facet.field=city&rows=0
try to run above query
Upvotes: 2