We actually have pretty complex implementation done with Algolia. Like a grocery store where relevance depends of the history of each user.
As with any engine, there is a lot of customization possible to handle complex use cases and it won't be handled out of the box.
You can read this list of 10 tips to have a great relevance, all of them are doable with Algolia: https://blog.algolia.com/algolias-top-10-tips-to-achieve-gre...