Skip to content

Commit 7ca8889

Browse files
committed
revised Suggest product list
1 parent e8225a3 commit 7ca8889

File tree

1 file changed

+45
-4
lines changed
  • sql/mozfun/norm/result_type_to_product_name

1 file changed

+45
-4
lines changed

sql/mozfun/norm/result_type_to_product_name/udf.sql

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ RETURNS STRING AS (
88
WHEN res IN ('rs_amo', 'rust_amo')
99
THEN 'suggest_add_on'
1010
WHEN res IN ('search_suggest', 'search_history', 'search_suggest_rich')
11-
THEN 'default_partner_search_suggestion'
11+
THEN res -- previously 'default_partner_search_suggestion'
1212
WHEN res IN ('search_engine')
1313
THEN 'search_engine'
14-
WHEN res IN ('rust_yelp', 'ml_yelp')
14+
WHEN res IN ('rust_yelp', 'ml_yelp', 'merino_yelp')
1515
THEN 'yelp_suggestion'
1616
WHEN res IN ('rust_fakespot_amazon', 'rust_fakespot_bestbuy', 'rust_fakespot_walmart')
1717
THEN 'fakespot_suggest'
1818
WHEN res IN ('trending_search', 'trending_search_rich')
1919
THEN 'trending_suggestion'
2020
WHEN res IN ('history')
2121
THEN 'history'
22-
WHEN res IN ('bookmark', 'keyword')
22+
WHEN res IN ('bookmark', 'keyword', 'restrict_keyword_bookmarks')
2323
THEN 'bookmark'
2424
WHEN res IN ('tab')
2525
THEN 'open_tab'
@@ -41,7 +41,7 @@ RETURNS STRING AS (
4141
THEN 'wikipedia_enhanced'
4242
WHEN res IN ('dynamic_wikipedia', 'merino_wikipedia')
4343
THEN 'wikipedia_dynamic'
44-
WHEN res IN ('weather')
44+
WHEN res IN ('weather', 'merino_weather')
4545
THEN 'weather'
4646
WHEN res IN (
4747
'action',
@@ -55,6 +55,47 @@ RETURNS STRING AS (
5555
THEN 'pocket_collection'
5656
WHEN res IN ('rs_mdn', 'rust_mdn')
5757
THEN 'mdn'
58+
WHEN res IN ('rust_vpn')
59+
THEN 'vpn'
60+
WHEN res IN ('remote_tab')
61+
THEN 'tabs'
62+
WHEN res IN ('calc')
63+
THEN 'calculator'
64+
WHEN res IN ('tip_onboard', 'tip_redirect', 'tip_persist')
65+
THEN 'tip'
66+
WHEN res IN ('autofill_about')
67+
THEN 'about_autofill'
68+
WHEN res IN ('autofill_adaptive')
69+
THEN 'adaptive_autofill'
70+
WHEN res IN ('unit')
71+
THEN 'unit_converter'
72+
WHEN res IN ('fxsuggest_data_sharing_opt_in')
73+
THEN 'online_suggest_opt_in'
74+
WHEN res IN ('merino_polygon')
75+
THEN 'merino_market_opt_in'
76+
WHEN res IN ('tab_serp')
77+
THEN 'open_tab_to_serp'
78+
WHEN res IN (
79+
'top_site',
80+
'recent_search',
81+
'history_serp',
82+
'history_semantic',
83+
'history_semantic_serp',
84+
'url',
85+
'tab_to_search',
86+
'tab_semantic',
87+
'tab_semantic_serp',
88+
'clipboard',
89+
'restrict_keyword_history',
90+
'restrict_keyword_tabs',
91+
'restrict_keyword_actions',
92+
'merino_market',
93+
'merino_sports',
94+
'merino_flights'
95+
)
96+
THEN res
97+
WHEN res LIKE('%opt_in')
98+
THEN res
5899
ELSE 'other'
59100
END
60101
);

0 commit comments

Comments
 (0)