none
Sp2019 custom search RRS feed

  • Question

  • I have created a site collection with publishing feature turned on (http://mySiteColl) on SharePoint 2019 on-premise. i have anonymous turned-on. All sites underneath inherit that.

    Under that site collection I have site (http://mySiteColl/my_site)

    I need to have custom search on that site that will search ONLY that site (my_site). Actually, I want for the results to be from my 3 custom lists on that site (List1, List2, list3).

    I've created new page and added "Search Results Web part" on it.

    On the site settings, I've created new search Source called "test1".

    But, I do not get results that I want.

    For example, i tried to write query in source "{?{searchTerms} Path:http://mySiteColl/my_site/Lists/List1}"

    I get no results.

    If I write following query: "{?{searchTerms} Path:http://mySiteColl/my_site"}"

    I get only results from library "Publishing Images".

    What do I need to do on "List1" so I can get the result from that list in my search??

    I executed full crawl many times, this is not the problem...
    • Edited by Mario Zagreb Wednesday, December 18, 2019 7:49 PM
    Wednesday, December 18, 2019 7:46 PM

All replies

  • Try Reindex the List and give a day then try to check for the search results.

    Thanks & Regards,


    sharath aluri

    Wednesday, December 18, 2019 7:52 PM
  • Hi Mario,

    For your issue, make sure there is a space between the {searchTerms} and http://mySiteColl/my_site/Lists/List1 when you create the result source:

    {searchTerms} Path:http://mySiteColl/my_site/Lists/List1

    Best Regards,

    Lisa Chen


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Thursday, December 19, 2019 7:20 AM
    Moderator
  • Hi Mario,

    For your issue, make sure there is a space between the {searchTerms} and http://mySiteColl/my_site/Lists/List1 when you create the result source:

    {searchTerms} Path:http://mySiteColl/my_site/Lists/List1

    Best Regards,

    Lisa Chen


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    There is a space.
    Thursday, December 19, 2019 10:46 AM
  • Try Reindex the List and give a day then try to check for the search results.

    Thanks & Regards,


    sharath aluri

    I tried reindex last night. Actually, nothing happens. I click Reindex button, then pop-up jumps out and then it goes back to main screen. I don't know if it really started reindexing?

    But, after all night, search is the same as yesterday.

    Thursday, December 19, 2019 10:48 AM
  • Hi Mario, 

    After reindex, start a full crawl, compare the results. 

    If the issue still exists, edit search results web part->change query->choose Local SharePoint Result (System)->use {searchboxquery} Path:http://mySiteColl/my_site/Lists/List1->click test query, check the search results
    ->ok->save the page:

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, December 20, 2019 8:27 AM
    Moderator
  • Hi Mario,

    If a reply helps you, please remember to mark it as an answer.

    Thanks for your understanding. 

    Best Regards, 

    Lisa Chen 

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, December 23, 2019 10:02 AM
    Moderator
  • Hi Mario,

    Is there anything update?

    Best Regards, 

    Lisa Chen 

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, January 6, 2020 9:56 AM
    Moderator