Page MenuHomePhabricator

Split Ferret engine strings for tokenization on any sequence of whitespace
ClosedPublic

Authored by epriestley on Sep 8 2017, 3:08 PM.
Tags
None
Referenced Files
F18879927: D18579.diff
Thu, Nov 6, 7:18 PM
F18840068: D18579.diff
Oct 27 2025, 8:50 PM
F18805090: D18579.diff
Oct 18 2025, 1:42 PM
F18705697: D18579.id44619.diff
Sep 28 2025, 12:41 PM
F18693448: D18579.diff
Sep 27 2025, 1:10 AM
F18693444: D18579.diff
Sep 27 2025, 1:09 AM
F18648234: D18579.id44619.diff
Sep 19 2025, 8:26 PM
F18644792: D18579.id.diff
Sep 19 2025, 6:03 AM
Subscribers
None

Details

Summary

Ref T12819. Currently, strings are split only on spaces, but newlines (and, if they exist, tabs) should also split strings.

Without this, we can fail to get the proper term boundary tokens for words which begin at the start of a line or end at the end of a line.

Test Plan

Reindexed a document with "xyz\nabc", saw "yz " and " ab" term boundary tokens generate properly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable