First, I'd like to say thanks for releasing the Search API with 4.1!
I'm hopeful that it can replace some of my existing code that I'm less
than satisfied with.

One of the first questions I have is about adding elements to
<search:result>.  When I return an item to the UI, I need to return
some metadata as well -- title, author, etc.  What's the best way to
add this?  One approach seemed to be to pass the <search:response>
node off to another function and iterate through each <search:result>,
but that optioned seemed to mean I'd be processing the same result
item twice, once to process the original result and a second time to
grab the metadata.  A second option was cracking open search-impl.xqy
where I was able to add the elements I needed after line 902
(attribute fitness {cts:fitness($result)},), but that option means
it's more difficult for me to upgrade when the next release comes out,
of course.

Is there another option that I've missed?  Can anyone recommend an approach?

Thanks!
Mattio
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to