Friday 24 November 2017

limit search result from Sitecore Content Tree

sitecore-search

Obviously it's not big issue, but sometime clients asking to limit search result while searching any Sitecore item from Content Tree.

we just need to change limit from setting to display search result.
So let's start

It's same as previously we did for limiting number of items for multi list field. from sitecore.config we need to change the value for setting for Search.ContentTreeSearch.MaxResults.

By default 25 results are listed when we search any items from content tree, and we can decrease the results list and also can increase.

<setting name="Search.ContentTreeSearch.MaxResults" value="25">

And if wanted to list all the searched result then set value as 0 (But suppose a scenario, if we have 1000+ items for searched item then it may take time or may impact to performance).

Let's take an example:

Please have a look


Sitecore config changes:

sitecore-config

Sitecore Content Tree:

sitecore-search-result


Have a Good Day!!!



Thursday 23 November 2017

Limit number of Items for multilist with sitecore

sitecore-config

Today got an scenario, where someone wants to limit the number of items for multi list field.

Really I had no idea that time so started r&d, and yes found that there is a setting into the sitecore.config. And the big thanks to Sitecore that already handled all the things only we need to give limitation.

By default there are total 100 number of items are allowed to multi list field.

<setting name="Query.MaxItems" value="100">

and if wanted to list all of the items into the multi list field then we can set value as 0 (i.e. value="0"), but it will impact to the performance.



Have a great day!!!