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
Unknown Object (File)
Sun, May 28, 6:32 PM
Unknown Object (File)
Sat, May 13, 9:31 AM
Unknown Object (File)
Apr 25 2023, 1:11 PM
Unknown Object (File)
Apr 24 2023, 12:08 PM
Unknown Object (File)
Apr 18 2023, 8:59 PM
Unknown Object (File)
Apr 18 2023, 8:59 PM
Unknown Object (File)
Apr 18 2023, 8:59 PM
Unknown Object (File)
Apr 15 2023, 8:00 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