Page MenuHomePhabricator

Search Typeahead - make exact matches show up first
ClosedPublic

Authored by btrahan on Nov 17 2014, 11:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 1:05 AM
Unknown Object (File)
Mon, Apr 22, 2:25 AM
Unknown Object (File)
Sat, Apr 13, 3:08 PM
Unknown Object (File)
Fri, Apr 12, 7:16 PM
Unknown Object (File)
Fri, Apr 12, 7:16 PM
Unknown Object (File)
Fri, Apr 12, 7:16 PM
Unknown Object (File)
Fri, Apr 12, 7:16 PM
Unknown Object (File)
Thu, Apr 11, 10:54 AM
Subscribers

Details

Summary

Fixes T6102. Give "priority" treatment to strings that are exact matches.

Test Plan

made a bunch of projects with the word project in them including "Project". before patch, "Project" wouldn't even show up if I typed "Project" - now its the second result right after the application "Projects".

Screen_Shot_2014-11-17_at_3.13.45_PM.png (1×2 px, 820 KB)

Diff Detail

Repository
rP Phabricator
Branch
T6102
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3076
Build 3082: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Search Typeahead - make exact matches show up first.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

Do we need toLowerCase()? I think we might already have called it on both parts (maybe only one part?) by the time we get here.

This revision is now accepted and ready to land.Nov 17 2014, 11:28 PM

I'll do some testing to try to figure it out...

btrahan edited edge metadata.

remove toLowerCase for both parts; they must be normalized by now in the stack

tested by searching for PROJECT, project, pRoJeCt, and PROJECT EVER... got the right results each time.

This revision was automatically updated to reflect the committed changes.