1,082
edits
Line 185: | Line 185: | ||
Based on the users preferences and the "match" key of the Product Attributes, apps can exclude some results (e.g. if a mandatory requirement is not fully met) and re-rank search results. | Based on the users preferences and the "match" key of the Product Attributes, apps can exclude some results (e.g. if a mandatory requirement is not fully met) and re-rank search results. | ||
For each attribute, the server computes a match that goes from 0 to 100 (perfect match). | |||
The filtering and ranking is done on the client, the preferences are not sent to the server. | The filtering and ranking is done on the client, the preferences are not sent to the server. | ||
Client-side (Open Food Facts website + Smoothie app) algorithm to compute a user defined sort key: | |||
* for each requirement in user preferences | * for each requirement in user preferences |