Page MenuHomePhabricator

Separate fulltext engine extensions into "enrich" and "index" phases
ClosedPublic

Authored by epriestley on Sep 1 2017, 4:22 PM.
Tags
None
Referenced Files
F13338515: D18513.diff
Wed, Jun 19, 11:04 AM
F13333156: D18513.diff
Tue, Jun 18, 1:51 AM
F13279878: D18513.id44469.diff
Sun, Jun 2, 12:22 AM
F13239125: D18513.id44467.diff
May 22 2024, 12:23 AM
F13222948: D18513.diff
May 19 2024, 4:08 AM
F13216132: D18513.id44467.diff
May 17 2024, 10:31 PM
F13205691: D18513.diff
May 15 2024, 2:17 AM
F13189377: D18513.diff
May 11 2024, 5:54 AM
Subscribers
None
Tokens
"Like" token, awarded by 20after4.

Details

Summary

Ref T12819. Some of the extensions "enrich" the document (adding more fields or relationships), while others "index" it (insert it into some kind of index for later searching).

Currently, these are all muddled under a single "index" phase. However, the Ferret extension cares about fields and relationships which other extensions may add.

Split this into two phases: "enrich" adds fields and relationships so other extensions can read them later if they want. "Index" happens after the document is built and has all the fields and relationships.

The specific problem this solves is that comments may not have been added to the document when the Ferret extension runs. By moving them to the "enrich" phase, the Ferret engine will be able to see and index comments.

Test Plan

Ran bin/search index ..., grepped for indexFulltextDocument.

Diff Detail

Repository
rP Phabricator
Branch
index1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18251
Build 24547: Run Core Tests
Build 24546: arc lint + arc unit

Event Timeline

chad edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 1 2017, 4:27 PM
This revision was automatically updated to reflect the committed changes.