From: David Cramer Date: Mon, 2 Jan 2012 15:46:43 +0000 (+0000) Subject: Webhelp: fixed bug where words like key, day, and nucleus, were not found due to... X-Git-Tag: release/1.79.1~6^2~598 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=729dfded757d296ab409c352f9f0a93c282b5f6d;p=docbook-dsssl Webhelp: fixed bug where words like key, day, and nucleus, were not found due to differences in the way the client stemmer and indexer stemmed words --- diff --git a/xsl/webhelp/template/content/search/nwSearchFnt.js b/xsl/webhelp/template/content/search/nwSearchFnt.js index c00a03056..ae740df67 100644 --- a/xsl/webhelp/template/content/search/nwSearchFnt.js +++ b/xsl/webhelp/template/content/search/nwSearchFnt.js @@ -128,11 +128,21 @@ function Effectuer_recherche(expressionInput) { var fileAndWordList = new Array(); var txt_wordsnotfound = ""; - - /* expressionInput, search input is lower cased, plus replacement of special chars - * nqu: expressionInput, la recherche est lower cased, plus remplacement des char speciaux - * */ - searchFor = expressionInput.toLowerCase().replace(/<\//g, "_st_").replace(/\$_/g, "_di_").replace(/\.|%2C|%3B|%21|%3A|@|\/|\*/g, " ").replace(/(%20)+/g, " ").replace(/_st_/g, "