Search - search for a specific list in the root site RRS feed

  • Question

  • Hello ,

    • I have a SharePoint portal .
    • The structure is  "Root Site >> Sub site 1" && "Root Site >> Sub site 2" .
    • I configured search on the server.
    • in the "Search Result web part" , I set  "{SearchBoxQuery} Path:{Site.URL}" in the query text because I want when user in "Sub site 1" , search only through this site.
    • The root site has a "Document Library" .
    • I need when user on sub site 1 and search for a word . I need to search only on this site and just a document Library on the root site .

       How Can I do that ?



    Sunday, October 12, 2014 8:26 AM


  • Hi himo,

    According to your description, my understanding is that you want to search only on one library of the root site and the subsite 1.

    I suggest you use the following query to query the result in the search result web part.

    {searchboxquery} Path:http://server/rootsite/subsite1 OR  Path:http://server/rootsite/library

    Best Regards,


    Wendy Li
    TechNet Community Support

    Monday, October 13, 2014 8:41 AM

All replies