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
F14002990: D18579.id44616.diff
Sat, Oct 26, 12:49 AM
F13998902: D18579.id44619.diff
Thu, Oct 24, 11:45 AM
F13973532: D18579.diff
Fri, Oct 18, 1:18 AM
Unknown Object (File)
Sun, Oct 6, 11:44 PM
Unknown Object (File)
Sun, Oct 6, 11:38 PM
Unknown Object (File)
Sun, Oct 6, 11:16 PM
Unknown Object (File)
Sep 17 2024, 8:11 PM
Unknown Object (File)
Sep 17 2024, 8:04 PM
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