Does Algolia have an account evaluation function like Elasticsearch?

I have a requirement to sort a field when a value matches its field, then this document has a higher score than other documents. Can Algolia do this?

+7
elasticsearch algolia
source share
1 answer

To reflect the importance of the attribute over the other, the way Algolia is used should definitely order the attributes you want to find in the searchableAttributes index searchableAttributes .

For example, if you want to search in title and description , but title more important; you must go for:

 searchableAttributes: - title - description 

Compared to the increase , this ensures that the number of matches that you have will not affect the overall rating (a common problem in ES: is 4 words matching here and there in description better than 2 words matching exactly in title ?).

With Algolia, objects matching the longest expression (in terms of proximity between query words in the text) will always be used to determine the best matching attribute; and then sort the results according to important attributes.

+7
source share

All Articles