From: Lars B. <L.J...@uv...> - 2011-11-28 09:46:00
|
2011/11/25 Lars Buitinck <L.J...@uv...>: > I've put a sample file, the one with the single mention of "Boeing", > as well as my collection.xconf at > http://staff.science.uva.nl/~buitinck/exist-bug/. Thanks for looking > into this. Okay, we managed to resolve the error with ft:query. Thanks to Jens for an (off-list) nod in the right direction: testing the text with contains caused exactly the same error. It turns out that ft:query was not to blame, but util:catch. We still don't know exactly what went wrong, but when we didn't wrap ft:query in util:catch, the error went away. Since we do need to catch exceptions from Lucene (and XQuery 3.0 exception handling is not available in eXist 1.4), we replaced the XPath expression collection('/db/documents')/root[.//house[@type eq "commons"]//scene with $coll//scene[ancestor::root//pm:house/@type eq $house] which for some reason does not trigger the bug. (We're still at a loss why the latter works, while the former doesn't.) -- Lars Buitinck Scientific programmer, ILPS University of Amsterdam |