Full cross site search with rest api


I’m having trouble understanding the Rest API search.

The view/common/search-form.phtml returns the results of all the sites’ items and html blocks containing the search text.

How do I do the same with domain.com/api/... ?

Help is warmly welcome :slight_smile:

The search page simply searches on the items, item sets, and site page resources separately and returns those results together. Without specifying a specific site ID to filter by, searches on those resources will always return items across all sites by default.

Thanks for getting back :slight_smile:

Yes, I’ve read that piece of code.

I suppose my question really is, Does a full-cross-site-search rest api endpoint already exist as part of Omeka? And if so, What does it look like? I can’t find examples.


My comment was meant to say, the search form you referred to does multiple requests because that’s the only way to do it. There is no single endpoint for searching of “everything,” though most resource searches are inherently “cross-site” through the API unless otherwise specified (except of course the ones dealing with sites specifically).

Thanks for the pointers. I managed to build a custom endpoint. Works fine!