Relevancy based on number of matching attributes

We have an attribute field called tags where we have entered relevant terms for the items people want to search.

Record #1 has tags:

{“iphone”, “phone”}

Record #2 has tags:

{“phone”, “wifi”}

If someone searches for phone, how can we make sure Record #1 is returned above Record #2? We want Algolia to count the number of times it successfully finds the search term within the tags.


Hi there!

Have you tried adding a new attribute as a new custom ranking criteria, choosing the order you want it sorted and by moving this custom ranking criteria at the top of your ranking formula?

However, this will affect the textual relevance of your search.