Search now working...
I have the search working well, but there's a dilemma: due to what seems to be a bug in eXist, I appear to have a choice between retrieving results with the hits marked up with <exist:match> tags, which enables me to highlight them, and retrieving the results with their status value attached to them as an attribute. In other words, if I massage the retrieved entries in any way, to attach the attribute to them based on the status of the file they come from, the <exist:match> tags are lost, and I can't highlight the hits on the page; but if I don't add the status value, I can't display the appropriate red, amber or green box next to each hit.
Because this looks like an eXist bug, I've spent half the afternoon trying to rebuild eXist and Cocoon using our script from last year, but that doesn't seem to work, unfortunately; I'm still trying to figure out why it fails.