Jason,
Thanks.

But, um, what if I need to? :-)

Is there a work-around for such a case, that is to cts:search() on a constructed node sequence?

I've tried passing doc($x) -- from my original example -- to the first parameter of the construct but got "invalid URI format." All other varieties result in the "unsearchable" error.

I'm working off Mr. Ryan Grimm's conceptual Google-ish model

http://developer.marklogic.com/svn/commons/trunk/search/query-xml/ example-search.xqy

in which the query body returns in one case cts:search(doc ($documents), $ctsQuery)[1 to 10]; however, that also throws the "invalid URI format" error for said reason.... Looking for a way around.

Regards,
Shannon

On Sep 14, 2006, at 12:36 PM, Jason Hunter wrote:

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-
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to