Posts

Showing posts from January, 2015

Configure managed property in sort drop-down list of SharePoint Search Results

For this we have to define JSON sort in the available sort orders property in the Search results Web Part. To add the JSON go into the search results web part properties, expand the “Settings” toggle and enable the “Show sort drop-down” option. By default you can see following sort orders. [  {"name":"Relevance","sorts":[]},  {"name":"Date(Newest)","sorts":[{"p":"Write","d":1}]},  {"name":"Date(Oldest)","sorts":[{"p":"Write","d":0}]},  {"name":"Lifetime Views","sorts":[{"p":"ViewsLifeTime","d":1}]},  {"name":"Recent Views","sorts":[{"p":"ViewsRecent","d":1}]} ] First let's understand the JSON format. The “name” property is the display name that you will see in the search drop down. Even though we’re n...