Office 365 – SharePoint – Search Results web part vs Search Content web part

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

4 thoughts on “Office 365 – SharePoint – Search Results web part vs Search Content web part

  1. Hi Pieter, I’m wondering if the problem is that Search Results webparts are configured to hide ‘duplicate’ results by default. The problem with Sites content being evaluated for duplication, is the only thing indexed is Text on the site homepage. If you just have webparts or the same templated text “Welcome to your new team site” on your site homepage then SharePoint sometimes views these sites as duplicates and hides them in search results.

    Here’s a good post showing a work-around for displaying all content (disabling duplicate results):
    http://www.eliostruyf.com/view-duplicate-results-sharepoint-2013-search-center-via-javascript/

    Hope that helps!

    Like

      1. Good point, I think you are right. I think when we ran into this we were seeing all the results in the test results within the web part, but they weren’t being displayed on the page.

        I’m interested to hear what Microsoft has to say. If you have a chance mention that it would be really nice if there was a setting in the webpart to show all duplicates too! 🙂 Or even better, be able to turn off the duplicate results for specific content types such as sites.

        Like

Leave a Reply to Nick Hurst Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.