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)
Mon, Jul 22, 8:05 PM
Unknown Object (File)
Thu, Jul 18, 9:31 PM
Unknown Object (File)
Tue, Jul 16, 5:59 AM
Unknown Object (File)
Mon, Jul 15, 7:06 AM
Unknown Object (File)
Fri, Jul 12, 9:41 PM
Unknown Object (File)
Fri, Jul 12, 2:22 PM
Unknown Object (File)
Wed, Jul 3, 5:00 PM
Unknown Object (File)
Mon, Jul 1, 2:35 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