Skip to content

Instantly share code, notes, and snippets.

@bala-one
Created November 5, 2024 00:17
Show Gist options
  • Save bala-one/612da325fcf7db9a30b01f01197e3e2b to your computer and use it in GitHub Desktop.
Save bala-one/612da325fcf7db9a30b01f01197e3e2b to your computer and use it in GitHub Desktop.
Limit the number of search results returned. This can be achieved by adjusting the ContentSearch.SearchMaxResults value to a lower number. Sitecore recommends to keep it at 500.
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" >
<sitecore role:require="Standalone or ContentManagement">
<settings>
<setting name="ContentSearch.SearchMaxResults" set:value="500" />
</settings>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment