SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1k forks source link

‎SharePoint suggestions api has stopped returning results‎ #7298

Open ishanisuchak opened 3 years ago

ishanisuchak commented 3 years ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

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 by following steps mentioned here
  3. Try to query the suggestions after waiting for at least 24 hours
  4. Test the api endpoint after 24 hours of waiting: /_api/search/suggest?querytext='tes'&inumberofquerysuggestions=10&fprequerysuggestions=true&fprefixmatchallterms=true&culture=1033 QuerySuggestions_alwayssuggest.TXT

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

bcameron1231 commented 3 years ago

I am seeing this as well in my environments.

RiddhiKarani commented 2 years ago

@VesaJuvonen any update on this we have customers asking for suggestions not returning data?