How to form select distinct(parameter) query in Apache Solr

244 views Asked by At

example :

select distinct(city) from employee_details where name="JOHN";

How to form select distinct(parameter) query in Apache Solr ?

1

There are 1 answers

6
Sanjay Dutt On

You can use facets to produce distinct values

q=name:JOHN&facet=true&facet.field=city&rows=0

try to run above query