diff options
author | Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl> | 2012-02-19 18:31:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-23 10:31:18 +0000 |
commit | 71231b9ea4a16e3582566e12a619b4deddef87c5 (patch) | |
tree | 3dd12f74ab313ab0b1310978c25d7bcfd6a5c9cb | |
parent | bc923636b45e47a4caeab6dff433aa28307ca145 (diff) |
Bugfix resultsetforquery
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index d0dea2860206..e8fe9d899b6c 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -98,8 +98,6 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF xTrans->loadModule(TransliterationModules_UPPERCASE_LOWERCASE, aLocale ); - // EDIT FROM HERE - vector< vector< rtl::OUString > > queryList; { sal_Int32 idx; @@ -169,7 +167,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF } pQueryResultVector->reserve( hitCount ); -// INVOCATION HERE + // START Invoke CLucene HelpSearch rtl::OUString aLang = m_aURLParameter.get_language(); rtl::OUString aSystemPath; osl::FileBase::getSystemPathFromFileURL( idxDir, aSystemPath ); @@ -185,12 +183,13 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF if( nQueryListSize > 1 ) aSet.clear(); - for (unsigned j = 0; j < aPathVector.size(); ++i) { + for (unsigned j = 0; j < aPathVector.size(); ++j) { pQueryResultVector->push_back(HitItem(aPathVector[j], aScoreVector[j])); if (nQueryListSize > 1) aSet.insert(aPathVector[j]); } -// INVOCATION END + // END Invoke CLucene HelpSearch + // intersect if( nQueryListSize > 1 ) { |