Solr search query facet is returning only 100 results

Anu picture Anu · May 31, 2012 · Viewed 7k times · Source

I am calling solr search hosted on a different machine with a query. When I wrote a query, it returns numFound=2405 matching docs. we have more than 10000 doc indexed. But the facet results that is being returned has only 100 count of ids that i am fetching as a facet fields.


My solr query is here (split for readability):

localhost:8983/solr/select/?
q="C"
&start=0&rows=10
&facet=on
&facet.field=currentEmployer
&facet.field=state
&facet.field=industry
&facet.field=education_university
&facet.field=workHistory_employer
&facet.field=id
&facet.mincount=1

why is this so? Please help me where i am doing wrong?

Answer

Jayendra picture Jayendra · May 31, 2012

Default value for facet.limit is 100
Add this request parameter to vary the number of facets returned.

A negative value means unlimited.