From 729dfded757d296ab409c352f9f0a93c282b5f6d Mon Sep 17 00:00:00 2001 From: David Cramer Date: Mon, 2 Jan 2012 15:46:43 +0000 Subject: [PATCH] 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 --- .../template/content/search/nwSearchFnt.js | 95 +++++++++++-------- .../content/search/stemmers/en_stemmer.js | 2 +- 2 files changed, 58 insertions(+), 39 deletions(-) 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, "