Today I came across a difference between the search result and search content web part. Next to all the obvious differences within the configuration of the two web parts the results returned are different too.

I’m trying to list all my sub sites within a certain site and I found different results between the two web parts.

The Search results web part only returns some of the sites (Web) objects where the Content Search web part returns all.subsites

 

For both web parts I’ve configured the query to show all sub sites but not the parent site:

contentclass:STS_Web (Path:{\Site.Url} AND Path<>{\Site.Url})

First the search result web part:

searchresults

 

The content search web part returns 3 items.

ContentSearch

I’ve reported this to Microsoft and they suggested to use the Content Search web part for now.

Then I had a chat with Mikael Svenson and he found the solution. Turn off the default duplicate trimming on the Search Results web part.

Duplicates

Problem resolved

 

 Other Related Links

http://www.techmikael.com/2014/12/content-search-web-part-vs-search.html

 

Advertisements