Currently wcf service returns 10 Million records from solr when queried and no page size is specified. How can i change the default page/row size when no page size is specified? Where is this setting that it gets 10 Million data by default?

  • try to updates the ContentSearch.SearchMaxResults setting value, you can find this setting in Sitecore.ContentSearch.config for Sitecore 9.3. May 12 '20 at 11:45
  • I am using a WCF service and using Solrnet.dll to connect to Solr . How do i update there?
    – Debaparna
    May 12 '20 at 12:25

You can add default parameters in solrconfig.xml in requestHandler of your index.

For example, if you want to limit default rows count by 10, you just need to add:

<requestHandler name="/select" class="solr.SearchHandler">
   <lst name="defaults">
       <int name="rows">10</int>

In this case, if your query does not have rows parameter, rows=10 will be added.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.