Page MenuHomePhabricator

Skip Ferret fulltext columns in "ORDER BY" if there's no fulltext query
ClosedPublic

Authored by epriestley on Mar 18 2019, 10:52 PM.
Tags
None
Referenced Files
F15492868: D20296.id48440.diff
Sat, Apr 12, 7:11 PM
F15491643: D20296.id48451.diff
Sat, Apr 12, 5:48 AM
F15491170: D20296.id.diff
Fri, Apr 11, 11:55 PM
F15491067: D20296.id48450.diff
Fri, Apr 11, 11:04 PM
F15485953: D20296.diff
Thu, Apr 10, 3:54 AM
F15469870: D20296.diff
Fri, Apr 4, 5:33 PM
F15343035: D20296.diff
Mar 9 2025, 10:08 PM
Unknown Object (File)
Mar 3 2025, 9:04 AM
Subscribers
None

Details

Summary

Ref T13091. If you "Order By: Relevance" but don't actually specify a query, we currently raise a bare exception.

This operation is sort of silly/pointless, but it seems like it's probably best to just return the results for the other constraints in the fallback order (usually, by ID). Alternatively, we could raise a non-bare exception here ("You need to provide a fulltext query to order by relevance.")

Test Plan

Queried tasks by relevance with no actual query text.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable