I would like to apply a custom ranking based on the current_user’s attributes.
As ranking is defined on the rails side, before indexing records, I am unsure if it is possible to apply ranking dynamically on the client side.
For a concrete example:
I am rendering a list of services available across Europe. My current_user is based in Germany. I would like to promote/rank top all services in Germany.
The end goal would be to promote “best matching” services, without filtering out alternative.
The difficulty is that the ranking depends on the user’s attributes and not on a general rule. All users should have their individual ranking and ranking should take multiple parameters like country but also business_size etc.
Any suggestions on how to apply ranking on the client side?
customRankings or optionalFilters might be the way to go but I am really uncertain.
Thank you very much for your assistance.
PS: Thank you for the great product you’re building!!!