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
F19558561: D18581.diff
Fri, Jan 30, 11:59 PM
F19553351: D18581.diff
Thu, Jan 29, 9:41 AM
F19552637: D18581.diff
Thu, Jan 29, 2:20 AM
F19543065: D18581.diff
Thu, Jan 22, 2:44 PM
F19098499: D18581.id.diff
Dec 4 2025, 5:00 PM
F19092520: D18581.diff
Dec 3 2025, 5:43 PM
F18907435: D18581.id44618.diff
Nov 8 2025, 11:31 PM
F18879881: D18581.diff
Nov 6 2025, 7:06 PM
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