Skip to content

API Search

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 (totalElements, etc.)

Do not use or generate a filterCode.

Extra points if the search can be made with a single call to ES.

Edited by Matija Obreza