Closed Bug 1936457 Opened 2 months ago Closed 1 month ago

Add a Suggest backend class for Merino

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: adw, Assigned: adw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

I'd like to add a SuggestBackendMerino class to go along with SuggestBackendRust and SuggestBackendMl. Then we can add a QuickSuggest.backends array and have UrlbarProviderQuickSuggest query all enabled backends. UrlbarProviderQuickSuggest wouldn't need any Merino-specific code anymore.

This adds SuggestBackendMerino and QuickSuggest.backends, an array that
contains all backends. So now we have Rust, ML, and Merino backends.

This also makes some changes to relevancy ranking (added in bug 1923187) because
that was done in _fetchMerinoSuggestions(), which this patch removes.
Previously, ranking was applied to all Merino suggestions at once. With this
patch, it's applied to each suggestion as it's visited by
#filterAndSortSuggestions(), which is now the right place to do it IMO. It
will be easy to expand it to non-Merino suggestions now if we want.

Depends on D231468

Depends on: 1936951
Blocks: 1937250
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a0de6f342cd Add a Suggest backend class for Merino. r=daisuke,nanj
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: