Hello, I’m working on Algolia integrated with Scaphold.io as a data source, and currently exploring possible options and limits of the custom rank indices to enhance the UX of our App.

**First question**

- Is is possible to define ranking attributes with
*weights*? For instance; I have an offer list, - Rank by distance 50%
- Discount value 20%
- Views count 20%
- Random 10%

Is that possible?

**Second question**

Is there a way to do a lot more advanced *formulas*, where we have four attributes for ranking, each attribute requires a sub-formula to calculate it, then the four outputs combined would form a final rank for the offer itself?

It’s like nested formulas, with weighting, on four (or x) dimensions.