Page MenuHomePhabricator

Sort global fulltext results by overall relevance
ClosedPublic

Authored by epriestley on Sep 7 2017, 4:13 PM.
Tags
None
Referenced Files
F18342559: D18551.diff
Tue, Aug 26, 4:43 AM
F18141009: D18551.id44587.diff
Thu, Aug 14, 5:40 AM
F18111084: D18551.diff
Tue, Aug 12, 6:40 AM
F18081531: D18551.id44558.diff
Tue, Aug 5, 12:45 AM
F17944475: D18551.diff
Thu, Jul 31, 10:14 AM
F17846014: D18551.id44558.diff
Jul 27 2025, 4:18 AM
F17836880: D18551.id44587.diff
Jul 26 2025, 4:38 PM
F17836315: D18551.id44587.diff
Jul 26 2025, 4:00 PM
Subscribers
None

Details

Summary

Ref T12819. Currently, under the Ferret engine, we query each application's index separately and then aggregate the results.

At the moment, results are aggregated by type first, then by actual rank. For example, all the revisions appear first, then all the tasks.

Instead, surface the internal ranking data from the underlying query and sort by it.

Test Plan

Searched for "A B" with a task named "A B" and a revision named "A". Saw task first. Broadly, saw mixed task and revision order in result sets.

Diff Detail

Repository
rP Phabricator
Branch
ferret5
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18341
Build 24688: Run Core Tests
Build 24687: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Sep 7 2017, 4:36 PM
This revision was automatically updated to reflect the committed changes.