Use Algolia to find my most similar entries

Hi,

I’m wondering if there is a way to use my Algolia index to find what are the most similar entries to another entry in my index.

By example, if I have products, and Algolia indexes the title and keywords, could Algolia return me the most similar products compared to a specific product (I can give the objectID or anything else)?

I figure it would be by querying results a specific way maybe? Even to be able to sort those having the most keywords in common would be a really good start.

Thank you for your ideas. :slight_smile:

Hi Jean-François,

If I understand well, you would like a search query like “keyword1 keyword2 keyword3” to also return results that just match keyword1 and keyword2.

Did you try using the optionalWords parameter to send your query, yet?