Software Heritage - Search service

The SWH search service, or swh-search, stores a partial copy of the Software Heritage archive. It is similar to swh-storage in what it contains, but provides different ways to query it: while swh-storage is mostly a key-value store that returns an object from a primary key, swh-search is focused on reverse indices, to allow finding objects that match some criteria; for example full-text search.

It is currently based on Elasticsearch, allowing full-text search on both URLs (using a search_as_you_type index) and on intrinsic metadata of their head revision in CodeMeta format.

It is kept in sync with the main SWH storage via the SWH journal.