For better relevance and performance, select attributes that are useful for search as your searchable attributes. You can then order your attributes based on the priority or relevance to search.
You’ve set up your custom ranking with business metrics
Make sure you’ve added business metrics to your , such as most-liked, most-watched, best-sold, and similar.
These metrics enable you to customize your ranking.
Custom ranking is second only to searchable attributes in importance, as it gives you direct control over every set of results and is critical to ranking and relevance.
You haven’t changed the default ranking formula unless necessary
Unless you have explicit reasons not to, you should use the default ranking formula. It’s usually best to set it back to its default before going live.
If you change any of the defaults—for testing purposes or to solve a particular problem—make sure to set them back to their original values unless those changes are necessary.
By default, Algolia includes all attributes in the JSON response, even if you don’t display them in your user interface.
To exclude some attributes from the response,
set them as unretrievableAttributes.
It’s best to think about synonyms right away. Every index has alternative words for the same meaning. For example, you may want to treat “film” and “movie” as equivalents. Synonyms also help you avoid queries with no results.
Make sure to treat plurals and singulars equivalently. For example, you may want the engine to consider “film” and “films” as being equivalent for search purposes.
Stop words are small common words like “of” and “the”. If these words appear in queries, they can introduce irrelevant results. Tell the search engine to ignore stop words.