Duplicate question for SOLR-Limiting Seach results
Is there any way where we can Override /customize SOLR search to return the fixed N number of results?.
Any pointer on how to achieve this?.
Thanks
Duplicate question for SOLR-Limiting Seach results
Is there any way where we can Override /customize SOLR search to return the fixed N number of results?.
Any pointer on how to achieve this?.
Thanks
You can modify the number of rows that are to be returned in the solrconfig.xml
file.
Under the requestHandler
tag you can have a list of defaults in which you can modify the rows
that are to be returned by default. By default, the value is set to 10.
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="df">text</str>
</lst>