Ranking with Weight


I would like to set a weighting to both my ranking and custom ranking attributes, as below :

  • GEO (40%).
  • [CUSTOM-RANKING] (60%) :
    mileage (15%)
    age (15%)
    price (30%)

(ie) : further away the item is located from the user and less points its going to get for its geolocation, the same logic goes for the other attributes.

Also, I want those rankings to be done at request time, how can I do this in Algolia ?

Thanks in advance for your help.