Backport EE changes to ProjectSearchResults
Backport EE changes to ProjectSearchResults

EE made some changes to the project_ids_relation method, but these were
not backported to CE.

stoplightio/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq