Skip to content

‎SharePoint suggestions api has stopped returning results‎ #7298

@ishanisuchak

Description

@ishanisuchak

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version: 92.0.4515.159
  • SPFx version
  • Node.js version
  • etc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions