Page MenuHomePhabricator

Ferret does not match documents with no title
Closed, ResolvedPublic

Description

See D20650. Currently, Ferret will not return a result if the document doesn't have a title, even if the document matches the search query in other fields (body, etc).

Empty fields are discarded by PhabricatorFerretFulltextEngineExtension and not inserted into the ffield table, but PhabricatorCursorPagedPolicyAwareQuery later does a JOIN against the title field in this table to apply a ranking order.

I think we can fix this by turning the JOIN into a LEFT JOIN and maybe tweaking the ranking logic slightly.

Revisions and Commits

Restricted Differential Revision

Event Timeline

epriestley created this task.
epriestley added a revision: Restricted Differential Revision.Jul 18 2019, 5:22 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Jul 18 2019, 5:37 PM
epriestley added a commit: Restricted Diffusion Commit.