« Return to Thread: Full-Text Search Questions

Re: Full-Text Search Questions

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View in Thread

> let $c := //*[. &= 'information']
> for $x in $c return $x/ancestor::*[@KEY][1]

The "for" loop is unnecessary and expensive:

let $c := //*[. &= 'information']
return $c/ancestor::*[@KEY][1]

should produce the same result.

Wolfgang

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

 « Return to Thread: Full-Text Search Questions

LightInTheBox - Buy quality products at wholesale price