Working on the search
Posted by mholmes on 20 Oct 2011 in Activity log
I've built the basic search page, and I have ft:query working with a simple search string, but I'm facing a number of issues:
- The kwic:get-summary() function was returning
<p>and<span>elements in no namespace, rather than in the XHTML namespace as the documentation says it should. I initially worked around this with CSS namespace selectors (see the CSS for this -- it's new, but works in Firefox, Chrome and Opera). I also reported it, and WM got back to me with the suggestion that I addenforce-xhtml=yesto theexist:serializedeclaration. That works! - I'm getting anomalous hit counts when I count the
<exist:match>elements in my kwic:expand()ed results. - Some results, although counted, don't seem to return anything. This is very puzzling, and I'm still trying to nail down the circumstances.
To help me in this process, I've added an "XML" link to the More Info box in every page, so anyone can take a look at the underlying XML of any page. That should probably stay there; it's extremely useful for me, and it will be for editors too, I think.