Posts

Showing posts from June, 2014

Disable duplicate value in search result webpart - SharePoint

Disable duplicate value in search result webpart can be avoided by changing the attribute TrimDuplicates default value. By default it is set as true and hence the similar items will be trimmed. To avoid this, TrimDuplicates value need to be set as false like, 'TrimDuplicates':false

SharePoint - Sorting in Search result webpart

SharePoint 2013 - Search Result Web Part sorting Search result web part sorting is different from content search web part. Here sorting need to be done in AvailableSortsJson attribute and not in FallbackSort attribute AvailableSortsJson="[{'name':'Created (A-Z)','sorts':[{'p':'Created','d':1}]}]