This kind of linking worked for [FREETEXT] (was covered by tests), but not for [TEXT] (was not covered by tests).
Root cause was that Anchor.parent is an SDocNodeField which has no parent_or_including_document. That property is defined on the SDocNodeField.parentSDocNode. So we need Anchor.parent.parent.
This kind of linking worked for
[FREETEXT]
(was covered by tests), but not for[TEXT]
(was not covered by tests).Root cause was that
Anchor.parent
is anSDocNodeField
which has no parent_or_including_document. That property is defined on theSDocNodeField.parent
SDocNode
. So we needAnchor.parent.parent
.Fixes #1905.