Homec4science

Support using the Porter stemmer when compiling search queries

Authored by epriestley <git@epriestley.com> on Nov 25 2016, 21:02.

Description

Support using the Porter stemmer when compiling search queries

Summary:
Ref T6740. Stemming reduces words to roots, so "deleting", "deletion", and "delete" all index as the root "delet". It's fine that roots aren't really words.

When users search for "delete", we'll search for "delet" intead, in an index which has already indexed all variants of "delete" as "delet".

(This gets a bit tricky when users mix quoted and unquoted terms, so we may need to search literal and stemmed indexes separately.)

Test Plan: Added unit tests; ran unit tests.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T6740

Differential Revision: https://secure.phabricator.com/D16943

Details

Committed
epriestley <git@epriestley.com>Nov 25 2016, 23:47
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUf91fe45f667b: Add a "query compiler" to convert user search queries into a form MySQL likes
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU42d7ebd477f9: Support using the Porter stemmer when compiling search queries (authored by epriestley <git@epriestley.com>).Nov 25 2016, 23:47