Homestyx hydra
Diffusion hydra a8ba8217d84f

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

Description

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

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.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13091

Differential Revision: https://secure.phabricator.com/D20296

Details

Provenance
epriestleyAuthored on Mar 18 2019, 6:48 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:3940c8e1f43a: Make the UI when you use an invalid cursor ("?after=19874189471232892") a…
Branches
Unknown
Tags
Unknown

Event Timeline