Using Content search web part to retrieve items from another site collection

I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
-http://applicationname/teamsite
-http://applicationname/enterprisewiki
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:-
Basically this setting 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”.
This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
1. 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.
2. 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.
3.  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
So can anyone advice how to fix these three problems

Hi,
1. In "Build Your Query" dialog, we can select "Specify a URL" in
Restrict by app and enter another site URL.
2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
Best Regards 
Dennis Guo
TechNet Community Support

Similar Messages

  • How to retrive latest items from different site collection using content search web part

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewik
    Now I need to display the latest 10 wiki pages that are inside the enterprise wiki site collection (according to the modified date) inside the team site. So I read that using Content search web part allows for cross-site content query.
    So 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 library and to specify that I need to get the latest 10 wiki pages using the
    content search web part's query dialog box? Can anyone advice please ?
    Thanks

    Edit the webpart and click change query in search criteria.  click on switch to advanced mode and enter your path:
    (path:"http://applicationname/teamsite" OR path:"http://applicationname/enterprisewik")
    you can specify sorting by created date and click ok.  in number of items to show, type 10.  this should fulfill your requirement.
    For further reading, here are some links:
    http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/04/30/stage-9-configure-the-
    query-in-a-content-search-web-part-on-a-category-page.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
    kashif

  • Query anonymous using Content Search Web Part

    I'm using the Content Serach Web Part in a template with public access, trying to query list data. It works fine when logged in, but as an anonymous user I get an error with correlation-id 000000000000-0000-0000-0000-000000000000. I do have anonymous
    access to the list data I query. Also I have added ViewFormPages to the AnonymousPermMask property as suggested, but with no luck.
    Anyone know how to search anonymous using the Content Serach Web Part, please share! Thanks in advance.

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/09a40222-36a4-472d-a9b8-28436ff3b78d/content-by-search-web-part-not-working-properly-for-anonymous-user?forum=sharepointdevelopment
    Please try to break inheritance permission for the anonymous users, and add ‘View Application Pages’ permission for them, it seems that the permission for anonymous users is moved by the lockdown feature, you can use the following PowerShell Script to change
    this:
    $web = get-spweb "http://yoursiteurl/subweb/subsubweb"
    $list = $web.Lists["ListName"]
    $list.BreakRoleInheritance($true)
    $list.AnonymousPermMask = $list.AnonymousPermMask -bor ([int][Microsoft.SharePoint.SPBasePermissions]::ViewFormPages) #binary or adding the permissions
    $list.Update()
    More information, How to Make List Items Visible to Anonymous Users (in Search):
    http://soerennielsen.wordpress.com/2012/05/29/how-to-make-list-items-visible-to-anonymous-users-in-search/
    http://www.mavention.com/blog/anonymous-search-results-cache-sharepoint-2013-public-websites
    <a:KeyValueOfstringanyType>
      <a:Key>TryCache</a:Key>
      <a:Value i:type="b:boolean"
    xmlns:b="http://www.w3.org/2001/XMLSchema">true</a:Value>
    </a:KeyValueOfstringanyType>
    http://magenic.com/BlogArchive/SharePoint2013ContentSearchWebPartsCatalogs
    http://blog.mastykarz.nl/inconvenient-anonymous-search-results-cache-user-segments/
    If this helped you resolve your issue, please mark it Answered

  • Can a content query web part dynamically query items from a particular that exists in multiple subsites

    I have a site collection with multiple subsites. All of the subsites have a list called "Status" which is using content types for its column management.
    I want to use a content query web part in the parent site level to query 1 item from everyone of these subsites. Is there a way to do this?
    The only way I can do this is if I create an individual content query web part for each subsite as I did not find an option for my content query to query from multiple subsites at once.

    You can do it using CQWP. For instance, if you have a site column called 'Rollup' that is part of your content type, that will be part of all your subsites custom list 'Status'. On the root site CQWP set the source to 'Show item from the following site and
    all subsites' and choose your root site (first image below). Then add 'additional filters' and set the value to 'Yes' as shown in second figure below; you will be able to roll up all the data to the root site like below. Now, you need to decide what query
    field you will use that is unique and that can roll up. 
    Srini Sistla Twitter: @srinisistla Blog: http://blog.srinisistla.com

  • Cannot retrieve data from PublishingPageContentOWSHTML in a Content Search Web Part

    I tried to display the content of a page using Content Search Web Part, the page is stored in a Pages library and the content type is Article Page.  When the data is retrieved in the Content Search Web Part, the page content mapping to PublishingPageContentOWSHTML
    is empty, although other data, such as Title and Page Image, can be retrieved.  It's very strange that I can do this work correctly for another CSWP web part, that page is stored in a Pages library in another subsite.  Both of the CSWP web parts
    are on the same publishing site.
    Could everybody tell me what I was doing wrong?   Thanks you very much in advance.
    Newbie to SharePoint.

    Hi Albert GSC, I had the same problem. I'm starting now with display templates and after including "'SecondaryFileExtension','ContentTypeId'" at the end of the mso:ManagedPropertyMapping section it worked.
    For example, my mso:ManagedPropertyMapping section was (PublishingPageContentOWSHTML returns empty):
    <mso:ManagedPropertyMapping msdt:dt="string">
    'Picture URL'{URL de la imagen}:'PublishingImage;PictureURL;PictureThumbnailURL',
    'Link URL'{Dirección URL del vínculo}:'Path',
    'Line 1':'ArticleStartDateOWSDATE',
    'Line 2':'Title',
    'Line 3':'PublishingPageContentOWSHTML'
    </mso:ManagedPropertyMapping>
    Then I included "'SecondaryFileExtension','ContentTypeId'" (PublishingPageContentOWSHTML returns its value):
    <mso:ManagedPropertyMapping msdt:dt="string">
    'Picture URL'{URL de la imagen}:'PublishingImage;PictureURL;PictureThumbnailURL',
    'Link URL'{Dirección URL del vínculo}:'Path',
    'Line 1':'ArticleStartDateOWSDATE',
    'Line 2':'Title',
    'Line 3':'PublishingPageContentOWSHTML',
    'SecondaryFileExtension','ContentTypeId'
    </mso:ManagedPropertyMapping>
    Still don't understand why but I'm looking for the reason, until then hope it helps

  • Content Search Web Part over HTTPS for a Host Named Site Collection

    Hello
    I have a host named site collection http://media.contoso.com which is a media portal that stores videos and pictures. On my parent site collection http://site.contoso.com homepage I have a Content Search Web Part that displays videos from the media portal.
    Both sites work over https.
    When I edit the content search web part and enter the URL http://media.contoso.com in the 'Change Query' box, search returns the results as expected but when I enter the URL as
    https://media.contoso.com no results are returned.
    I have removed the binding in IIS to point to http://media.contoso.com.
    I need it to be https so that I don't see "HTTPS security is compromised by http://media.contoso.com" on my site collection homepage.
    Any idea why this is happening?
    Thanks
    Yoshi

    http://technet.microsoft.com/en-us/library/ee792873%28v=office.15%29.aspx
    In the Search SSL Settings dialog box, do one of the following:
    If you do not want the crawler to crawl a site when there is an SSL certificate warning, make sure that the
    Ignore SSL certificate name warnings check box is cleared. For security reasons, the check box is cleared by default.
    If you want the crawler to crawl a site even if there is an SSL certificate warning, make sure that the
    Ignore SSL certificate name warnings check box is selected.
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://freeit-support.com/

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    duplicate thread
    http://social.msdn.microsoft.com/Forums/en-US/f9fef155-1aa3-43b5-b285-5eae5d036b8d/content-search-webpart-property-filter-by-query-string-how-to-use-?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Use a Content Search Web Part to Display a Picture

    Hello -
    Is there a way to use the Content Search Web Part to display the most recently added picture to a specified application?
    Please let me know if you need additional information to answer this question.
    Thanks,
    Jordan

    Hello Jordan,
    I believe you could do this :
    filetype:jpg OR filetype:png OR  (and so on for all
    images types)
    AND path:"http://yoursite/youlibrary"
    Regards
    Samuel
    Sharepointerie.com

  • Item title won't show in Content Search Web Part

    Hi,
    I am trying to show news items from one site on another site. I can show all attributes so far, except for the title.
    The field name of the title in the news item is 'title'.
    In crawled properties, I have linked the title to Title, RefinableString00 and RefinableString12.
    But the title either displays DispForm.aspx as a title (when I select title), or nothing (when I select the mapped property RefinableString00 or RefinableString12).
    What can/should I do to show the title field?

    Hi,
    According to your post, my understanding is that Item title did not show in Content Search Web Part.
    You need to open the webpart either in SP designer or visual studio or as matter of fact in Notepad and search for the special property. And then add your list columns which you wants to display.
    More information:
    How to: Display Custom Fields in a SharePoint Content By Query Web Part (ECM)
    SharePoint: Content Query Webpart - OOB, Custom Fields, Custom Style with Table format
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Using term set as refiner in content search web part does not show all used terms

    When you create a terms set (12 terms with +/- 10-20 child terms) , attach it to a site column and allow multiple values to be selected the search service does not find all used values in the REFINERS tab of the content search web part.
    Example:
    Field ‘Tags’ is the term set which can be refined. We want to do this in the REFINERS tab of the content search web part.
    Tags is containing following fields:
    •Course document
    •Poster
    •ALS
    •Before
    •During
    •CPR/AED I
    In all libraries we used +/- 15 different tags already.
    Example of a tag field in the library:   "Poster;ALS;Belgium"
    The problem is we can’t see all of the used tags in the refiners tab when you open it for the first time.  (You can see Belgium or Cyprus is not in the list of tags.)
    When you select one tag and add it as a refiner, the others eventually do show up. But never all of them together.   It’s like he is only showing the most used (and maybe first selected?) tags first. I also think he might be having some trouble
    with multi value selections in the tag field.
     Does anyone else have the same issue as we do? And is there a solution already?

    Hi Sasha,
    According to your description, my understanding is that all the used terms cannot display in the Refiners in Content Search web part.
    If the results display in the Search Result Preview, then the terms used in these results can be displayed in the Refiners tab.
    I tested the same scenario per your post, and when I first opened it I can view all the terms which were used in the search results listed under owsmetadatafacetinfo.
    I recommend to do a full crawl and then you can view all the terms used in the search results are displayed under owsmetadatafacetinfo.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • More than 50 items in content Search Web part

    HI,
    How can i override the maximul limit of 50 items in a content search web part?
    I have a specific requirement where I need to show more than 500 items with Paging activated.
    Kindly advise hwo it can be achieved.
    Thanks,
    kesari suresh

    Hello , 
    The client side solution
    proposed by Matt
    Stark int this work around Blog 
    not workling as i wish ,  i have set the limit to 700 but the webPart still get it limit  50 instead of 700.
    in my display template ,  ctx.ClientControl.get_numberOfItems()=700 but only 50 items per page are rendred.
    What's wrong ?
    Any help will be appreciated.
    Thanks

  • Content Search web part Customization with Tabs

    Hi,
    I'm customizing a Content Search web part. I need to create dynamic tabs on it based on the values of a retrieved specific column. Do you have idea on how to retrieve all the values all at once, so that I can format the tabs itself? Because right now, I
    can only get one list item at a time by using ctx.CurrentItem. Thanks. :)
    Regards,
    Napster

    You can make a REST call with groupby query on the specific column to get distinct values.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Content Search Web Part Has No Results

    Hello,
    I have been working on a site for a few weeks now and have been trying to make a simple Image Slider. I have found many tutorials and all are helpful -- except I get stuck at the same part every time. I am trying to use a Content Search Web Part in order
    to pull images from a library/list and display them. I go through almost the same instructions every time but my query never shows any results.
    I have went in to 'Change Query' and set the following:
    Select a query: Pictures (System)
    Restrict By App: Specify a URL --> Then changed to mysite/myimagelibrary
    I have tried a few things. I have changed the Result Source to multiple different things, including the default 'Recently Changed Items.' I have also tried to put the images in a list rather than a Picture Library. I have also tried MANY different ways of
    putting in the 'specific URL.'
    I don't know why I can't seem to get results from my query. Any help or suggestions would be appreciated. Thank you.

    Hi,According to your post, my understanding is that you used a Content Search Web part to search images from a library/list , it didn’t display any
    Results.
    Please check which content type you used for these images . Maybe its content type is document rather than picture. Please make sure your images’ content type is picture.
    You can go in to 'Change Query' and set the following:
    Select a query: Items matching a content type(System)
    Restrict by App: Current site
    Restrict by content type: Picture
    As you have mentioned in your description “Specify a URL --> Then changed to mysite/myimagelibrary”.
    Here is a similar issue, you can use as a reference:
    http://social.technet.microsoft.com/forums/sharepoint/en-US/4a683be5-354d-4497-88da-672dd6335358/content-by-search-web-part-shows-no-results
    If the issue still exists, please feel free to let me know.
    Best Regards,
    Lisa Chen

  • Content Search web part - Display Project Enterprise Custom Fields and Lookup Tables

    My ultimate goal is to display a rollup table of our active projects (from PWA) on another site collection using the content search web part. I can return default properties (such as the project name, author and URL) fairly easily using the same basic steps
    in the link below.
    http://en.share-gate.com/blog/roll-up-sharepoint-2013-sites-using-search
    My problem is that I want to also display information associated with each project from our PWA enterprise custom fields (such as risk, phase, etc.)
    Because these custom fields do not appear to be site columns, I'm at a bit of a loss as to how this data is searched / indexed / mapped.
    Is it possible to display PWA enterprise custom fields in a content search web part?

    Hi Jennifer,
    According to your description, my understanding is that you want to display PWA enterprise custom fields in a Content Search web part in SharePoint 2013.
    As your active projects were from different site collection with the Content Search web part, you need to do a crawl for the content source, then create a managed property for the column in CA->Search Service Application->Search Schema. When you create
    the managed property, select Searchable, Queryable, Retrievable.  Then  map it to the crawled property based on the custom column. You can find the crawled property by searching the name of the column in crawled properties.
    More information, please refer to the link:
    http://technet.microsoft.com/en-us/library/jj219667(v=office.15).aspx
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Content Search Web Part and Managed Property

    Do I have to have cross-site collection publishing feature turned on for the Content Search Web Part to show a managed property?
    I have a list and a column in that list called Colors. I created a managed property out of the crawled property for Colors column. On a page within the same site-collection, I added a content search web part (displays items from the earlier list) and
    trying to display the managed property for Colors to show up for each of the items. For some reason, Colors value is not being displayed for the items.
    Any ideas?

    Thanks, Peter, appreciated. Here is my problem:
    I created a site column and added it to the list. Added an item that has a value for this site column. System automatically generated a crawled property for the site column and also a managed property. Do I still have to perform step # 5 from above?
    Now when I go into the content search web part and change the query to use this managed property as a refiner, it does not work.
    I will try the debugging as you suggested.
    In the meanwhile, Please let me know if you know of anything wrong I am doing.
    UPDATE: I debugged it using IE Dev. Toolbar and the value for that managed property is being returned as null. What could be going wrong? How can I further troubleshoot this problem?

Maybe you are looking for

  • File adapter picking up files with wrong content

    Hello, We configured a file adapter to read *.xml files. We also defined the xsd for the files. We expected that the adapter would only pick up files that conform to the xsd. However we found that all *.xml files (even renamed jpeg's) are read. Is th

  • Sorting on non-displayed items - can it be done ?

    Hi, I'm very new to Discoverer (and this forum), so apologies if I'm covering old ground. I've created a simple discoverer table report and the folder I've based the data on has a number of columns that determine the sort order i.e. called 'activity_

  • BP number not getting created while creating org structure in PPOMA_CRM

    Hi, we have sol Man 4.0 SP15. I am creating org structure in PPOMA_CRM. After creating the org units, the BP number are NOT getting generated automatically. Please advise on this. Regards Kumar

  • Offline data capture for SQLServer2k shows 0 tables

    Hi, I'm evaluating OMWB Offline Data Capture for SQL Server 2000 migration. I ran OMWB_OFFLINE_CAPTURE.BAT script for SQL Server 2000. It seams like the DAT files are generated and no error messages appear. The problems occure when I start the OMW an

  • Problem with deploying juddi in jwsdp1.5

    Hi All, I have donwloaded, jwsdp1.5 and the associated tomcat5.0-jwsd. I have successfully started my tomcat admin and management page. But when I deploy juddi using a juddi.war file, I just can not get access to juddi db. I get the following error: