[Mediawiki-l] Eliminating Wiki Markup from Search Results

Wood, Jamey Jamey.Wood at nrel.gov
Mon Sep 14 17:37:29 UTC 2009


Is there some established way to ensure that the snippets shown with MediaWiki search results will not include raw Wiki markup?  I've looked around and found others noting this issue for both the "Lucene search" extension:

  http://stackoverflow.com/questions/778166/mediawiki-lucene-how-to-strip-markup

...and the default search mechanism:

  http://www.mediawiki.org/wiki/Search_issues#.22Search_Results_Show_Markup_Junk.22
  http://www.searchtools.com/analysis/mediawiki-search/5-mw-search-stinks-shows-markup.html

Unfortunately, none of these mention a working solution.

Would it be best to use the rendered HTML output of Wiki pages to generate these snippets?  That seems like the only way to be sure that you're properly transforming any Wiki text (and handling the syntax additions of any extensions you may have installed, etc).  If so, is there any publically-available code to make that happen?

Thanks,
Jamey



More information about the MediaWiki-l mailing list