Tags: Mobile edit Mobile web edit |
|
Line 18: |
Line 18: |
| == Functional specs == | | == Functional specs == |
|
| |
|
| === Search API ===
| | [[Server-side product indexing and search - Functional Specs]] |
|
| |
|
| The search API is called by the app to retrieve a high number of generic search results (products) that match a query.
| | == Technical specs == |
| Β | |
| ==== Match (required) ====
| |
| Β | |
| The search query needs to contain at least one required criteria.
| |
| Β | |
| Here are potential criteria that we could consider:
| |
| Β | |
| ===== Match on category =====
| |
| Β | |
| The query specifies a category tag (e.g. en:cookies).
| |
| Β | |
| Pros:
| |
| * Can be used to display product recommendations for a given product (using the most specific category of the product)
| |
| * Can be used for a search box that is limited to categories (e.g. suggest as you type restricted to known categories)
| |
| * Can be used for a per category search interface that display 1st level choices, 2nd level etc. (e.g. first click on "Vegetables", then "Bananas" etc.)
| |
| * There could be ways to pre-compute per category results that could be used to speed up queries
| |
| Cons:
| |
| * Does not support freely typed search queries (e.g. with a product name or brand)
| |
| Β | |
| Β | |
| ===== Match on keywords =====
| |
| Β | |
| Allow users to enter keywords that can be matched indifferently to product name, brand, categories etc. This is how the current search function on the OFF web site is implemented.
| |
| Β | |
| Pros:
| |
| * Can be used for a search box
| |
| Cons:
| |
| * Currently does not work well for products in multiple languages
| |
| * Difficult to do pre-computations to optimize queries
| |
| Β | |
| ===== Match on product =====
| |
| Β | |
| Given a product as input, return "similar" products.
| |
| Β | |
| Pros:
| |
| * Can be used for products recommendations
| |
| * Similarity could be based on other things that the category (e.g. labels, ingredients, brands etc.)
| |
| Cons:
| |
| * It could be very expensive to retrieve similar products in real-time or to pre-compute all of them
| |
| * Does not work for category search of freely typed search queries
| |
| Β | |
| ==== Optional filters ====
| |
|
| |
|
| The search query can contain filters to restrict the result set. e.g. the country where the products are sold.
| | [[Server-side product indexing and search - Technical Specs]] |
| Β | |
| Those filters may also include user preferences for apps who do not want to do the personalization locally.
| |
| Β | |
| Β | |
| === Server-side indexing ===
| |
| Β | |
| Based on the type of queries we want to support, we may be able and may need to pre-compute and store new information in the database to better support the queries.
| |
| Β | |
| ==== Similarity ====
| |
| Β | |
| ==== Non personalized sort order ====
| |
| Β | |
| It is unrealistic to return all possible results to the calling app for all queries. E.g. if the query is "cookies", we cannot return tens of thousands of results. So we will need to use some kind of reasonable sort order that returns the most useful results for the app, without limiting the options for personnalization of the results.
| |
| Β | |
| Possible criteria to include in the sort order:
| |
| Β | |
| ===== Product quality =====
| |
| Β | |
| If we expect that the app will only offer "better" products and not worst products, we may include things like the Nutri-Score or NOVA in the sort order.
| |
| Β | |
| ===== Availability =====
| |
| Β | |
| We can filter by country of availability, by store (or stores) of availability, and number of scans (a proxy for wide availability)
| |
| Β | |
| ===== Popularity =====
| |
| Β | |
| We could also include a measure of product popularity (e.g. derived from scans) in the sort order.
| |
| Β | |
| == Technical specs ==
| |
|
| |
|
| | == Implementation == |
|
| |
|
| [[Category:Project:Personalized_Search]] | | [[Category:Project:Personalized_Search]] |