MarkLogic field index weighting rules for an included child with an excluded parent

From MarkLogic Field Documentation :

If the field has two or more elements with different weights, and if one of these elements is a child of the other element, then the weight of the parent element is used, and the weight of the child element is ignored.

But it is unclear what happens when the ancestor and the descendant have weights and the direct parent is excluded. For example, let's say I have a document:

<X>
  <A>
    <B>
      <C>

<X>(root) is excluded from the field, <A>included in weight=1, <B>excluded, and <C>included in weight=2. Will there be a field match for a member <C>weighted with 1 or with 2? (And is there a way to check how indexed weights contribute to estimates to confirm that such a configuration works as intended?)

+4
source share

All Articles