12

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?

Jesvin Jose
  • 22,498
  • 32
  • 109
  • 202
Anu
  • 753
  • 2
  • 13
  • 22

2 Answers2

36

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

A negative value means unlimited.

Adam
  • 6,041
  • 36
  • 120
  • 208
Jayendra
  • 52,349
  • 4
  • 80
  • 90
  • 2
    Adding a negative value for `facet.limit` doesn't return this facet. Do you have any hint why would that be happening? – Islam Azab Feb 09 '15 at 13:55
  • For me it works like a charm!!!! My problem was that on large results the low cout facet was not created. Thank you so much! – Tenaciousd93 May 25 '16 at 08:18
0

On your SOLR Server, edit the solrconfig.xml for the index you are using and add -1 as in snapshot below. SolrConfig.xml is found in the conf folder of your index. Find the requesthandler you are using, for e.g. "/select", - enter image description here

Repeat this for each index that you want to update. Don't forget to restart your SOLR service. Once this was done, the facets started showing 100+ values.

Ghanendra
  • 341
  • 2
  • 13