Page MenuHomePhabricator

When selecting Ferret ngrams, select term ngrams (not raw ngrams) for term search
ClosedPublic

Authored by epriestley on Sep 8 2017, 4:13 PM.
Tags
None
Referenced Files
F13999493: D18581.diff
Thu, Oct 24, 3:10 PM
F13975535: D18581.id44621.diff
Fri, Oct 18, 10:34 AM
Unknown Object (File)
Sep 17 2024, 7:52 PM
Unknown Object (File)
Sep 14 2024, 1:43 AM
Unknown Object (File)
Sep 13 2024, 2:07 AM
Unknown Object (File)
Sep 13 2024, 1:50 AM
Unknown Object (File)
Sep 13 2024, 1:50 AM
Unknown Object (File)
Sep 13 2024, 1:50 AM
Subscribers
None

Details

Summary

Ref T12819. For queries like v0.2, we would incorrectly search for ngrams including 0.2, but this is only a substring ngram: the term corpus splits this into v0 and 2, so 0.2 is not in the ngrams table.

When executing term queries, search for term ngrams instead. This makes "v0.2" work properly again.

Test Plan

Searched for "v0.2", found a task with "v0.2" in the title.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable