[MarkLogic Dev General] Query works in CQ but fails in CQSH
Peter Hickman
peter.hickman at semantico.com
Wed Jul 25 05:50:51 PDT 2007
Andrew Bruno wrote:
> Hi Peter,
>
> Any chance you can post your XQuery? or a simplified version of it. Which
> versions of ML server/cqsh are you running?
>
>
> --Andy
>
Sure MarkLogic server 3.2-2 in 32bit RedHat.
Cqsh 0.5.0
...various namespace declarations...
let $query := "*"
return
for $doc in
(
(
for $doc in /doc[( opp:meta/dc:type = 'biography') and
not(opp:meta/opp:headword-matches/opp:self/@status = 'secondary')][
(.//opp:alphasort ge 'a') ]
order by $doc//opp:alphasort
return $doc
)[1 to 50]
)
return xdmp:invoke ('/opp/result-meta.xqy', (xs:QName('opp:uri'),
base-uri($doc)))
--
Peter Hickman.
Semantico, Lees House, 21-23 Dyke Road, Brighton BN1 3FE
t: 01273 358223
f: 01273 723232
e: peter.hickman at semantico.com
w: www.semantico.com
More information about the General
mailing list