server-wide api search returns 500 internal server error
When using GitLab API's [search](https://docs.gitlab.com/ce/api/search.html#global-search-api) endpoint, I receive an internal server error as soon as there's too much for the API to search in. This happens using the example below, or when using the example from the API docs. ``` https://gitlab.com/api/v4/search?scope=blobs&search=MyQuery&page=1&per_page=100 ``` ``` curl -i --request GET --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/search?scope=blobs&search=installation HTTP/1.1 500 Internal Server Error Server: nginx Date: Thu, 01 Aug 2019 08:29:39 GMT Content-Type: application/json Content-Length: 39 Cache-Control: no-cache Vary: Origin X-Request-Id: Ah5G4lDwDV2 X-Runtime: 0.388527 RateLimit-Limit: 600 RateLimit-Observed: 1 RateLimit-Remaining: 599 RateLimit-Reset: 1564648239 RateLimit-ResetTime: Thu, 01 Aug 2019 08:30:39 GMT {"message":"500 Internal Server Error"} ``` I wonder if this is expected behaviour, since other people seem to have had similar issues in the past. (https://gitlab.com/gitlab-org/gitlab-ce/issues/63727) In my case, the advice of 'narrowing down' my search query is not a solution, since I want to search public GitLab repositories globally, just like GitHub's search API provides.
issue