HomePhorge

Add a name token table so on-demand typeaheads can match last names

Description

Add a name token table so on-demand typeaheads can match last names

Summary: See T585. We currently don't match middle/last/nth names in on-demand
tokenizers. Build a table so we can match them.

Test Plan:
Ran upgrade script, verified table looks sensible. Searched for "priestley" in a
tokenizer, got a bunch of test account hits.

mysql> select * from user_nametoken;
+-------------------+--------+
| token             | userID |
+-------------------+--------+
| evan              |      1 |
| priestley         |      1 |
| epriestley        |      1 |
| epriestley2       |      2 |
| ducks             |      4 |
| epriestley3       |      4 |
| asdf              |      6 |
| epriestley99      |      6 |
...

Reviewers: bh, nh, jungejason, tuomaspelkonen, aran

Reviewed By: aran

CC: aran

Differential Revision: 1034

Details

Provenance
epriestleyAuthored on Oct 23 2011, 1:25 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP4156cf6bd970: Add an optional configuration option to set 'Precedence: bulk' headers on
Branches
Unknown
Tags
Unknown

Event Timeline