‎SharePoint suggestions api has stopped returning results‎

%3CLINGO-SUB%20id%3D%22lingo-sub-2723695%22%20slang%3D%22en-US%22%3E%E2%80%8ESharePoint%20suggestions%20api%20has%20stopped%20returning%20results%E2%80%8E%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2723695%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20custom%20search%20solution%20that%20uses%20search%20suggestions%20api%3A%3C%2FP%3E%3CP%3E%2F_api%2Fsearch%2Fsuggest%3Fquerytext%3D'tes'%26amp%3Binumberofquerysuggestions%3D10%26amp%3Bfprequerysuggestions%3Dtrue%26amp%3Bfprefixmatchallterms%3Dtrue%26amp%3Bculture%3D1033%3C%2FP%3E%3CP%3EThis%20api%20endpoint%20used%20to%20work%20before%20but%20has%20started%20returning%20empty%20results%20lately.%3C%2FP%3E%3CP%3EI%20also%20checked%20on%20other%20tenants%20as%20well%2C%20the%20api%20doesn't%20return%20results%20on%20all%20tenants%20(it%20used%20to%20return%20results%20before).%3C%2FP%3E%3CP%3EI%20have%20a%20query%20suggestions%20text%20file%20in%20place%20as%20explained%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fmanage-query-suggestions%23to-create-query-suggestions-in-sharepoint-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%3C%2FP%3E%3CP%3ESteps%20to%20reproduce%3C%2FP%3E%3COL%3E%3CLI%3ELogin%20to%20any%20SharePoint%20online%20tenant%3C%2FLI%3E%3CLI%3EAdd%20a%20query%20suggestions%20text%20document%20like%20the%20one%20attached%20below%20by%20following%20steps%20mentioned%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fmanage-query-suggestions%23to-create-query-suggestions-in-sharepoint-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Ffiles%2F7114077%2FQuerySuggestions_alwayssuggest.3.TXT%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EQuerySuggestions_alwayssuggest.TXT%3C%2FA%3E%3C%2FLI%3E%3CLI%3ETry%20to%20query%20the%20suggestions%20after%20waiting%20for%20at%20least%2024%20hours%20after%20adding%20the%20query%20suggestions%3C%2FLI%3E%3CLI%3ETest%20the%20api%20endpoint%20after%2024%20hours%20of%20waiting%3A%20%2F_api%2Fsearch%2Fsuggest%3Fquerytext%3D'tes'%26amp%3Binumberofquerysuggestions%3D10%26amp%3Bfprequerysuggestions%3Dtrue%26amp%3Bfprefixmatchallterms%3Dtrue%26amp%3Bculture%3D1033%3C%2FLI%3E%3C%2FOL%3E%3CP%3EExpected%20behavior%3C%2FP%3E%3CP%3EIf%20the%20query%20suggestions%20have%20been%20added%2C%20the%20suggestions%20api%20should%20return%20suggestions%20for%20any%20text%20that%20belongs%20in%20the%20suggestions%20text%20file%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Visitor

I have a custom search solution that uses search suggestions api:

/_api/search/suggest?querytext='tes'&inumberofquerysuggestions=10&fprequerysuggestions=true&fprefixmatchallterms=true&culture=1033

This api endpoint used to work before but has started returning empty results lately.

I also checked on other tenants as well, the api doesn't return results on all tenants (it used to return results before).

I have a query suggestions text file in place as explained here

Steps to reproduce

  1. Login to any SharePoint online tenant
  2. Add a query suggestions text document like the one attached below by following steps mentioned here
    QuerySuggestions_alwayssuggest.TXT
  3. Try to query the suggestions after waiting for at least 24 hours after adding the query suggestions
  4. Test the api endpoint after 24 hours of waiting: /_api/search/suggest?querytext='tes'&inumberofquerysuggestions=10&fprequerysuggestions=true&fprefixmatchallterms=true&culture=1033

Expected behavior

If the query suggestions have been added, the suggestions api should return suggestions for any text that belongs in the suggestions text file

0 Replies