I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-



Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query.

Currently I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-

enter image description here


  • I tried the following for the "Restrict by app" i chose "Do not restrict by app".
  • then i switch to advance mode , but i can not find a way to specify the site collection URL :-

enter image description here


Basically this partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-

  • From the “Select a Query” I defined the following:- “items matching content type(system).”

  • Restrict by app : “Do not restrict results by app”

  • Restrict by content type “Enterprise Wiki Page”.

enter image description here

This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type.

But I am facing these problem:-

  • The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.

  • To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc. enter image description here

  • Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list

1 Answer 1


The options are right in front of you. "Restrict by App" - At the moment you have it set to 'Current Site' which is actually 'Current Web'. You would need to remove this restriction to access the full index.

Switch to Advanced Mode, ensure we are looking at Local SharePoint Results source and remove the query in the box.

Add the following:


This will scope to all items under that site path. You will need to add a filter to this to include only either 'Pages' or the 'Enterprise Wiki' content type. (or whatever content type was used for the Pages you have mentioned.)

An example of the full query as follows:

Path:http://applicationname/enterprisewiki* ContentType:"Enterprise Wiki Page"
  • can you check my edit please?
    – John John
    Commented Aug 26, 2014 at 10:12
  • 1
    Copy the query in the above post and paste into 'Query Text' you can leave the existing query in there as well. This just filters all results into items only. Replace the path with the path to your site.
    – z.rahui
    Commented Aug 27, 2014 at 0:06
  • can you check my "EDIT 2" , as it is partilly working for me..
    – John John
    Commented Aug 27, 2014 at 11:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.