Find entries similar to a specific one

Hi!
Is it possible to use Search REST API to search for other entries that are similar to a specific entry in the index (identified by objectID)?

Thanks!

Hi @dev22,

We do not have any specific search endpoint to achieve this behaviour. However, it looks like what you are trying to achieve is similar to what we call “related items”.

We have a specific tutorial on how to build this kind of search experience here: https://www.algolia.com/doc/guides/solutions/gallery/related-items/ :slight_smile:

Thanks Marie, I see it’s using https://www.algolia.com/doc/api-reference/widgets/configure-related-items/js/. Is it possible to do the same using REST API?

Hi there,

This widget (configure-related-items) is using optional filters under the hood. This is a parameter you can add on a regular HTTP query to the main search endpoint.

I hope this helps!