Home GnuPG

Support using the Porter stemmer when compiling search queries
42d7ebd477f9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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

Event Timeline

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