It would be (implicitly) possible to figure out the repository name of the search entity result from the id serialization but, as @daniel stated in T150848#2835772 API should not make its clients decode ID to be able to know where the match was found.
Repository name should be made explicit in the results returned by the SearchEntity API module.
Patches for review: