Closed
Bug 1911903
Opened 3 months ago
Closed 1 month ago
Support the Fakespot product_type field
Categories
(Application Services :: Suggest, task)
Application Services
Suggest
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bdk, Unassigned)
References
Details
(Whiteboard: [disco-])
Attachments
(1 file)
- Ingest this field and index it using FTS5
- If a query matches against this field for a suggestion, then it should be ordered before any suggestions that don't match.
Reporter | ||
Updated•3 months ago
|
Whiteboard: [disco-]
Updated•3 months ago
|
Reporter | ||
Comment 1•3 months ago
|
||
To be precise:
- we're adding 2 new fields:
product_type
andkeywords
- The matching logic should stay exactly the same, these fields will only change the ordering logic
- Define
keywords_score
as1.0
if the query matches thekeywords
field exactly,0.0
otherwise - Define
product_type_score
asmatched / term_count
, wherematched
is the number of terms fromproduct_type
that are present in the query andterm_count
is the total number of terms. For example, whenproduct_type="standing desk"
:- The query
standing desk
gets a product_type_score of 1.0 - The query
desk
gets a product_type_score of 0.5 - The query
standing desk for my office
gets a product_type_score of 1.0 (extra terms in the query are ignored)
- The query
- Matched suggestions are ordered by the tuple
(keywords_score, product_type_score, score)
Comment 2•3 months ago
|
||
Comment 3•1 month ago
|
||
PR was merged, closing. I think it was also vendored in to m-c but I'm not sure what version -- 130 at the latest since that's the version the Fakespot experiment targeted.
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•