Forum Discussion
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
- JohnWickWithEraserCopper Contributor
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 LivioIron ContributorIf 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?
- JohnWickWithEraserCopper ContributorHi 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.
- Joao LivioIron Contributor
Se here
Or
Try reindex the list: List Settings
Advanced settings -> Reindex List
If there are multiple lists on same site affected you might want to index whole site:
Site Settings -> Search -> Search and Offline Availability
- JohnWickWithEraserCopper 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.