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
F13996353: D10867.id26091.diff
Wed, Oct 23, 8:23 PM
F13996316: D10867.id26091.diff
Wed, Oct 23, 8:03 PM
F13996173: D10867.id26094.diff
Wed, Oct 23, 6:37 PM
F13996118: D10867.id26094.diff
Wed, Oct 23, 6:11 PM
F13989922: D10867.id26095.diff
Mon, Oct 21, 11:56 PM
F13985310: D10867.id26095.diff
Sun, Oct 20, 7:38 PM
F13976769: D10867.id26095.diff
Fri, Oct 18, 3:38 PM
F13976005: D10867.id26091.diff
Fri, Oct 18, 12:31 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.