Changes

Jump to navigation Jump to search
124 bytes added ,  13:12, 27 September 2021
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.
   −
Sample client-side algorithm to compute a user defined sort key:
+
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

Navigation menu