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)
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
Unknown Object (File)
Wed, Apr 3, 10:16 AM
Unknown Object (File)
Sun, Mar 31, 10:08 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.