[MarkLogic Dev General] cts:search()
Jason Hunter
jhunter at marklogic.com
Thu Sep 14 09:36:12 PDT 2006
Shannon Shiflett wrote:
> Hi,
>
> Can cts:search() operate on a sequence of constructed nodes? Unknown
> whether "fully searchable XPath" precludes. E.g.,
>
> let $x := collection("PGWDE")//tei:div1[cts:contains(.//tei:note,
> cts:word-query("foo"))]
> return cts:search($x, cts:word-query("bar"))
>
> Thanks,
>
> Shannon
> UVA Press
Not at this point, no. The first argument to cts:search() must start
with doc(), collection(), input(), or slash (implying input()). It also
has other restrictions, like it can't have positional predicates or use
reverse axes. If you do, you'll get the "unsearchable expression" error.
-jh-
More information about the General
mailing list