Please implement a /api/v1/search endpoint that will do a full-text ES search for top 5 hits for each of the indexed collections (accession, activitypost, faoinstitute).
The response should be a
Map<String, ?> with the classname as key and the value as a
Page with the top 5 search results (
Do not use or generate a
Extra points if the search can be made with a single call to ES.