From: Dale P. <gca...@gm...> - 2009-02-28 17:01:12
|
I have looked through the forum and do not see any questions/response on this. My apologies if I overlooked something. I have eXist 1.2.2 and have enabled the match-tagging-elements attribute of the serializer element in the conf.xml file. When I do a keyword search I see the <exist:match> tags around the terms I put in my search. The problem is that I can't use them for anything. For example, I structure my query so that I get back the elements with the keywords, but also several levels up in order to be able to pull other information about the file. So, in my xQuery scripts I will have a variable which holds the search results, $rec, and from it I can pull out information, such as: let $date := $rec/header//did/unitdate; or let $class := $rec/ header//did/../@class But if I try to focus on where my keyword hits are - lets say I was looking in unittitle like: $title := $rec/header//did/unittitle/match:exist then I get nothing. Because $rec starts at higher level in the doc, it is possible that this will give me many unittitles, but I only want the ones with a match:exist. To make the original evaluation focus only at the unittitle level is also not satisfactory I have also tried this using the web start admin tool and the same results happen. Any thoughts or solutions would be most appreciated. Thanks. -- Dale Patterson |