SharePoint list search is not working in Hosted add-in

%3CLINGO-SUB%20id%3D%22lingo-sub-3012884%22%20slang%3D%22en-US%22%3ESharePoint%20list%20search%20is%20not%20working%20in%20Hosted%20add-in%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3012884%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20using%20Sharepoint%20hosted%20addin%20and%20we%20have%20a%20problem%20with%20the%20search%20function%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20our%20view%20screen%20there%20are%203%20items%20like%20the%20picture%20(This%20view%20is%20deployed%20on%20Addin%20Web)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226d2c9bf7-cee0-4b73-abe7-8a676b100648.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329917i0CC25E5F33248CA0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%226d2c9bf7-cee0-4b73-abe7-8a676b100648.jpg%22%20alt%3D%226d2c9bf7-cee0-4b73-abe7-8a676b100648.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20we%20enter%20%22TEST%22%20into%20the%20search%20bar%2C%20the%20results%20are%20empty.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%225b79a731-2060-4ba1-ad54-900111751d53.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329918i2C9C6135D0DC0426%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%225b79a731-2060-4ba1-ad54-900111751d53.jpg%22%20alt%3D%225b79a731-2060-4ba1-ad54-900111751d53.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20raises%20us%20some%20questions.%3C%2FP%3E%3CP%3E1.%20Is%20there%20anyway%20we%20can%20search%20the%20AddIn%20Web%3F%3C%2FP%3E%3CP%3E2.%20Where%20is%20database%20of%20the%20SearchIndex%20located%3F%20(HostWeb%20or%20AddinWeb%3F)%3C%2FP%3E%3CP%3E3.%20Where%20is%20Scrawling%20Data%20implemented%3F%20(HostWeb%20or%20AddinWeb%3F)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E(If%20there%20are%20any%20documents%20that%20help%20with%20these%20questions%2C%20please%20send%20us%20a%20reference.)%3C%2FP%3E%3CP%3EAs%20the%20picture%20below%2C%20when%20entering%20the%20search%20value%20into%20the%20search%20box%20on%20AddinWeb%2C%20it%20will%20query%20the%20Database%20Search%20Index%20(2)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%229997b3f4-5651-48cb-af4d-1186ad48163c.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329919i2B25647735BB637E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%229997b3f4-5651-48cb-af4d-1186ad48163c.jpg%22%20alt%3D%229997b3f4-5651-48cb-af4d-1186ad48163c.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Foverview-of-search%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Foverview-of-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Foverview-of-search%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3012884%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExtensibility%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3017484%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20list%20search%20is%20not%20working%20in%20Hosted%20add-in%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3017484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410212%22%20target%3D%22_blank%22%3E%40JohnWickWithEraser%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESe%20here%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsharepoint%2Fsharepoint-site-list-find-an-item-function-not-working%2Fm-p%2F298226%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsharepoint%2Fsharepoint-site-list-find-an-item-function-not-working%2Fm-p%2F298226%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20reindex%20the%20list%3A%20List%20Settings%3C%2FP%3E%3CP%3EAdvanced%20settings%20-%26gt%3B%20Reindex%20List%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20are%20multiple%20lists%20on%20same%20site%20affected%20you%20might%20want%20to%20index%20whole%20site%3A%3C%2FP%3E%3CP%3ESite%20Settings%20-%26gt%3B%20Search%20-%26gt%3B%20Search%20and%20Offline%20Availability%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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)

6d2c9bf7-cee0-4b73-abe7-8a676b100648.jpg

 

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

5b79a731-2060-4ba1-ad54-900111751d53.jpg

 

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)

9997b3f4-5651-48cb-af4d-1186ad48163c.jpg

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

10 Replies

@JohnWickWithEraser 

 

Se here

https://techcommunity.microsoft.com/t5/sharepoint/sharepoint-site-list-find-an-item-function-not-wor...

 

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

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.

JohnWickWithEraser_0-1638499019984.png

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

 

 

 

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?
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-sh...

The search issue happens at step 32.
You are creating a list with a template and a list instance, ok, but if it works for all other lists, that means your custom list is not being crawling.

If don’t work for all others lists also I have a solution because it happened to me.
May we know the solution?
I don't know if applys to your context, but I had a problem in a farm, all lists won't return any value, First I tried to delete the search content sources and recreate but didn't work, I had to remove and install the Search Service again, then create all content sources again the start working.

I really don't know if this is the same problem on your side. If all lists won't return any value, you can give a shot.

 

JohnWickWithEraser_0-1639617556509.png

I am are using SharePoint-hosted apps. SharePoint is hosting it.

 

So in that case who should I contact to remove and install Search Service again?

 

@Joao Livio 

Did you see if this behavior is replicated for all lists not in the add-in? That solution was if something was broken in the farm.

I'll try to reproduce the article and let you know