Thread:Project:Support desk/How do I format search results / add section links to search results (the same way Wikipedia and other WikiMedia sites do)?

Does anyone know how to present formatted search results like Wikipedia? for example, if you Wikipedia any search term, it will not only strip out the Wiki markup, but it also presents an extra link to jump directly to the section.

I have tried both SphinxSearch and Lucene, and neither seems have these features of their own accord.

I very much prefer to use Sphinx - but I will use Lucene if required.

Does anyone know how the WikiMedia sites accomplish these formatted and section-linked search results?

-JD-