Page MenuHomePhabricator

Reduce the number of magic strings in the Ferret implementation
ClosedPublic

Authored by epriestley on Sep 5 2017, 4:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 12:17 AM
Unknown Object (File)
Tue, Jan 21, 11:11 AM
Unknown Object (File)
Fri, Jan 17, 5:34 PM
Unknown Object (File)
Sun, Jan 5, 11:57 AM
Unknown Object (File)
Dec 28 2024, 1:32 PM
Unknown Object (File)
Dec 27 2024, 3:12 PM
Unknown Object (File)
Dec 18 2024, 4:12 AM
Unknown Object (File)
Dec 4 2024, 8:35 AM
Subscribers
None

Details

Summary

Ref T12819. Push more of the magic ' ' stuff into the engine and simplify calls to ngram construction.

Also fixes a bug where a task with title "apple banana" and description "cherry doughnut" could match query "banana cherry" by separating separate term segments with newlines instead of spaces.

Test Plan
  • Indexed some objects.
  • Searched (term, substring, quoted terms).
  • Viewed index in database.

Diff Detail

Repository
rP Phabricator
Branch
ferret2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18284
Build 24603: Run Core Tests
Build 24602: arc lint + arc unit