[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] a132610: Don't use sparql queries in strigi (and thus xesam
From: Till Adam <till () kdab ! com>
Date: 2010-12-28 20:11:25
Message-ID: 20101228201125.D5153A6090 () git ! kde ! org
[Download RAW message or body]
commit a13261068312f293fa0aedb3dacf15f5aa98bded
branch master
Author: Till Adam <till@kdab.com>
Date: Wed Dec 22 20:24:27 2010 +0100
Don't use sparql queries in strigi (and thus xesam) mode.
diff --git a/kmail/searchwindow.cpp b/kmail/searchwindow.cpp
index 4cba7cd..d5afd17 100644
--- a/kmail/searchwindow.cpp
+++ b/kmail/searchwindow.cpp
@@ -487,15 +487,24 @@ void SearchWindow::slotSearch()
mTimer->start( 200 );
- kDebug() << searchPattern.asSparqlQuery();
+#if AKONADI_USE_STRIGI_SEARCH
+ const QString query = "";
+ const QString queryLanguage = "XESAM";
+#else
+ const QString query = searchPattern.asSparqlQuery();
+ const QString queryLanguage = "SPARQL";
+#endif
+
+ kDebug() << query;
if ( !mFolder.isValid() ) {
// FIXME if another app created a virtual 'Last Search' folder without
// out custom attributes it will result in problems
- mSearchJob = new Akonadi::SearchCreateJob( mSearchFolderEdt->text(), \
searchPattern.asSparqlQuery(), this ); + mSearchJob = new \
Akonadi::SearchCreateJob( mSearchFolderEdt->text(), query, this ); } else {
Akonadi::PersistentSearchAttribute *attribute = \
mFolder.attribute<Akonadi::PersistentSearchAttribute>();
- attribute->setQueryString( searchPattern.asSparqlQuery() );
+ attribute->setQueryLanguage( queryLanguage );
+ attribute->setQueryString( query );
mSearchJob = new Akonadi::CollectionModifyJob( mFolder, this );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic