Solr Facets: How to set Facet.Limit to (-1) unlimited

Solr Facets: By default Solr returns top 100 facets. We have a case where we need to show all facets where the count is more than 100. We need to set facet.limit = -1 to get unlimited facets if are browsing on Solr browser.
We are using to Sitecore.ContentSearch.Linq to set facets from code, which doesn't have implementation to set facet.limit.
Has anyone came across similar situation?. Please suggest

  • Hi Giri,

    We are also facing same issue for facet limit since last 15 days. Have you get any updates or solution for this issue?
    Please provide your feedback/response as soon as possible.

    Thanks in Advance!
  • Hello

    I just ran into this problem myself and found the solution.

    On your Solr Server, edit the solrconfig.xml for the index you are using. It is found in the conf folder of your index.

    Find the requesthandler you are using, for instance "/select", and add <str name="facet.limit">-1</str>.
    Be aware that you have to do this for each index that you want to update.

    For me it looks like this after the fix.

    <requestHandler name="/select" class="solr.SearchHandler">
    <!-- default values for query parameters can be specified, these
    will be overridden by parameters in the request
    -->
    <lst name="defaults">
    <str name="echoParams">explicit</str>
    <int name="rows">10</int>
    <str name="df">text</str>
    <str name="facet.limit">-1</str>
    </lst>


    BR
    Christian
  • In reply to Christian Raaschou:

    It works for me. Thanks a lot!