Forum Discussion

JohnWickWithEraser's avatar
JohnWickWithEraser
Copper Contributor
Nov 29, 2021

SharePoint list search is not working in Hosted add-in

We are using Sharepoint hosted addin and we have a problem with the search function

 

On our view screen there are 3 items like the picture (This view is deployed on Addin Web)

 

When we enter "TEST" into the search bar, the results are empty.

 

That raises us some questions.

1. Is there anyway we can search the AddIn Web?

2. Where is database of the SearchIndex located? (HostWeb or AddinWeb?)

3. Where is Scrawling Data implemented? (HostWeb or AddinWeb?)

 


(If there are any documents that help with these questions, please send us a reference.)

As the picture below, when entering the search value into the search box on AddinWeb, it will query the Database Search Index (2)

https://docs.microsoft.com/en-us/sharepoint/overview-of-search

10 Replies

  • Also, this issue is possible to reproduce in the tutorial.

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-started-creating-sharepoint-hosted-sharepoint-add-ins

     

    • Joao Livio's avatar
      Joao Livio
      Iron Contributor
      If nothing is found, and the if is on premises, I would try to recreate the sources in the search admin. But is only happening in the actual add in?
      • JohnWickWithEraser's avatar
        JohnWickWithEraser
        Copper Contributor
        Hi Joao Livio,

        You can follow the steps in the official document using the link below to reproduce it.
        https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-started-creating-sharepoint-hosted-sharepoint-add-ins

        The search issue happens at step 32.
    • JohnWickWithEraser's avatar
      JohnWickWithEraser
      Copper Contributor

      Hi Joao Livio,

       

      Thanks for the suggestion.

      We tried but it seems like there's something going on on MS Server which prevent doing so.

      We also post a ticket about this (endpoint not reachable) to MS Support but they were not able to discover anything on their environment.

       

       

       

Resources