Group level search API not returning results for blobs when zoekt is enabled but elasticsearch is disabled
Summary
Group-level search API for blobs scope is returning an error response when Zoekt is enabled, but Elasticsearch is disabled.
{
"message": {
"error": "Scope not supported without Elasticsearch!"
}
}
Steps to reproduce
Disable Elasticsearch from the Admin settings. Perform a group-level blobs search. Like this: https://gdk.test:3443/api/v4/groups/24/search?scope=blobs&search=test
What is the current bug behavior?
Error response:
{
"message": {
"error": "Scope not supported without Elasticsearch!"
}
}
What is the expected correct behavior?
Should successfully return search results
Relevant logs and/or screenshots
Possible fixes
Should allow zoekt here: https://gitlab.com/gitlab-org/gitlab/-/blob/54ccfadd3907992e58aefab9627cc1fb617ea73c/ee/lib/ee/api/search.rb#L24