[MarkLogic Dev General] cts:search $expression

James A. Robinson jim.robinson at stanford.edu
Wed Sep 10 13:49:19 PDT 2008


> 
> The simplest approach is to pass a sequence of ids to the doc()  
> function:
> 
> cts:search(
>    doc(('/1.xml', '/2.xml'))/hw:doc/a:entry,
>    $query
> )
> 
> Variables and constructed sequences aren't searchable expressions,  
> even if what they point at or hold would be.

Ok, that's understandable I suppose.  I can't actually use the multiple
ids trick, but it's good to know that would have worked for the simplier
case I outlined first. :)


Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson at stanford.edu
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)


More information about the General mailing list