locked
Limit Content Search Webpart to a specific list RRS feed

  • Question

  • Im am getting my feet wet with the Content search webpart, but I am stumbling over something that I believe should actually be easy, but I can't do it nevertheless.

    I want to display only items with a certain column entry from a docstore within another sitecollection. I thought of doing this with the Content search web part.

    1. In the advanced tab, I can limit the source of the query to a specific site, but not a specific docstore/List either through URL or ID. I simply get 0 results whereas leaving the ListID/ListUrl Parameter out, I get nicely all the relevant docs in the site

    path:"https://domain/sites/am/pm" AND ListID={5329496C-7D13-4417-ABD3-97E6629A32B2} (FileExtension:xls OR FileExtension:xlsx) (IsDocument:"True" OR contentclass:"STS_ListItem")

    or another version

    path:"https://domain/sites/am/pm" AND ListUrl=https://domain/sites/am/pm/Test_Musterportfolio/ (FileExtension:xls OR FileExtension:xlsx) (IsDocument:"True" OR contentclass:"STS_ListItem")

    2. Certain Column entry: I will attempt to do this through creating a list column as a managed property and then take if from there. Found a nice article in this Forum regarding that that Looks promising.

    Any help is appreciated.

    Raoul

    Monday, March 31, 2014 9:34 AM

Answers

  • Hi Raoul,

    According to your description, my understanding is that there was 0 result when you search a library with Content Search web part in SharePoint 2013.

    Whether you did a crawl when you used content search web part.

    Please go to Central Administration, and do a full crawl for the content source. After crawling the content source , test the query in Content Search Web part, compare the result.

    I hope this helps.

    Thanks,

    Wendy


    Wendy Li
    TechNet Community Support


    Tuesday, April 1, 2014 7:45 AM