Sorry Trevor, I just tried to simplify, thinking that the order of $a and $b should not make any difference.
70 (small) documents are “x” (size below 1KB)
70 documents are “y” (size between 20 and 100KB)
4 documents ar “z” (size between 20 and 100KB)
Standard Index for x/v1, x/v2, y/v3, z/v3
Text Index for “y” and “z” (Top-Level element).
Schemas for “y” and “z” are open content just defining the top-level element and indexed parts.
In fact the number of documents for “z” does not matter.
for $a in input()/x, $b in input()/y
is fast.
for $a in input()/x, $b in (input()/y, input()/z)
is slow even for non existing “z” documents.
Regards,
erwin
#webMethods#API-Management#Tamino