Closed Bug 1911903 Opened 3 months ago Closed 1 month ago

Support the Fakespot product_type field

Categories

(Application Services :: Suggest, task)

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.
Whiteboard: [disco-]

To be precise:

  • we're adding 2 new fields: product_type and keywords
  • The matching logic should stay exactly the same, these fields will only change the ordering logic
  • Define keywords_score as 1.0 if the query matches the keywords field exactly, 0.0 otherwise
  • Define product_type_score as matched / term_count, where matched is the number of terms from product_type that are present in the query and term_count is the total number of terms. For example, when product_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)
  • Matched suggestions are ordered by the tuple (keywords_score, product_type_score, score)

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.

Attachment

General

Created:
Updated:
Size: