Skip to content
Snippets Groups Projects

search: refactor suggestions to use streaming search

Closed Warren Gifford requested to merge rn/refactor-suggestions-to-use-streaming-search into main

Created by: novoselrok

Fixes #24983 (closed)

Instead of using the SearchSuggestions GQL endpoint, I refactored the client suggestions to use streaming search endpoint. For example, to get suggestions for repo:source filter we transform the query into repo:source type:repo count:50 and use the search results as suggestions.

TODO:

  • Fix client tests
  • Support for file and symbol suggestions

Notes:

  • :warning:️ Browser extension still uses GQL suggestions (will have to be removed in a separate PR)
  • :warning:️ Support for context: suggestions has been removed because contexts are not an eligible search result type
  • :warning:️ Support for repogroup: suggestions has been removed for the same reason as well

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading