summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib/qhelpsearchindexreader_clucene_p.h
diff options
context:
space:
mode:
authorkh <qtc-committer@nokia.com>2009-03-31 09:49:24 (GMT)
committerkh <qtc-committer@nokia.com>2009-03-31 09:49:24 (GMT)
commitb311ebf246a0af16f851dd16c92594c238a0048f (patch)
treeae73343feecec85b75554c15a176579ce35479de /tools/assistant/lib/qhelpsearchindexreader_clucene_p.h
parent3d370dc92466b010bfe6cdd82411f7e3d13da7c1 (diff)
downloadQt-b311ebf246a0af16f851dd16c92594c238a0048f.zip
Qt-b311ebf246a0af16f851dd16c92594c238a0048f.tar.gz
Qt-b311ebf246a0af16f851dd16c92594c238a0048f.tar.bz2
fixes search for non latin1 characters
while parsing html files, we removed some entities the should have been converted to there native representation, thus we were not able to find them Task-number: 247732 Reviewed-by: hjk
Diffstat (limited to 'tools/assistant/lib/qhelpsearchindexreader_clucene_p.h')
-rw-r--r--tools/assistant/lib/qhelpsearchindexreader_clucene_p.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/assistant/lib/qhelpsearchindexreader_clucene_p.h b/tools/assistant/lib/qhelpsearchindexreader_clucene_p.h
index 892c4e6..f7536e9 100644
--- a/tools/assistant/lib/qhelpsearchindexreader_clucene_p.h
+++ b/tools/assistant/lib/qhelpsearchindexreader_clucene_p.h
@@ -54,6 +54,8 @@
//
#include "qhelpsearchengine.h"
+
+#include "fulltextsearch/qanalyzer_p.h"
#include "fulltextsearch/qquery_p.h"
#include <QtCore/QList>
@@ -93,12 +95,13 @@ signals:
private:
void run();
- bool defaultQuery(const QString &term,
- QCLuceneBooleanQuery &booleanQuery);
- bool buildQuery(QCLuceneBooleanQuery &booleanQuery,
- const QList<QHelpSearchQuery> &queryList);
- void boostSearchHits(const QHelpEngineCore &engine,
- QList<QHelpSearchEngine::SearchHit> &hitList,
+ bool defaultQuery(const QString &term, QCLuceneBooleanQuery &booleanQuery,
+ QCLuceneStandardAnalyzer &analyzer);
+ bool buildQuery(QCLuceneBooleanQuery &booleanQuery, const QList<QHelpSearchQuery> &queryList,
+ QCLuceneStandardAnalyzer &analyzer);
+ bool buildTryHarderQuery(QCLuceneBooleanQuery &booleanQuery,
+ const QList<QHelpSearchQuery> &queryList, QCLuceneStandardAnalyzer &analyzer);
+ void boostSearchHits(const QHelpEngineCore &engine, QList<QHelpSearchEngine::SearchHit> &hitList,
const QList<QHelpSearchQuery> &queryList);
private: