[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/runtime/nepomuk/services/strigi
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-06-29 9:58:01
Message-ID: 20100629095801.D8430AC8E0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1144005 by trueg:
Backport: Fixed regular expression used for the exclude filters: use an exact match \
on the filename.
M +2 -2 indexscheduler.cpp
--- branches/KDE/4.4/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp \
#1144004:1144005 @@ -662,13 +662,13 @@
//
QStringList filters;
foreach( const QRegExp& re, \
Nepomuk::StrigiServiceConfig::self()->excludeFilterRegExps() ) {
- filters << QString::fromLatin1( "REGEX(STR(?fn),\"/%1$\")" ).arg( \
re.pattern().replace( '\\',"\\\\" ) ); + filters << QString::fromLatin1( \
"REGEX(STR(?fn),\"^%1$\")" ).arg( re.pattern().replace( '\\',"\\\\" ) ); }
query = QString::fromLatin1( "select distinct ?g ?url where { "
"?r %1 ?url . "
"?r %2 ?fn . "
"?g <http://www.strigi.org/fields#indexGraphFor> ?r \
. "
- "FILTER(REGEX(STR(?url),'^file:/')) . "
+ "FILTER(REGEX(STR(?url),\"^file:/\")) . "
"FILTER((%3) && (%4)) . }" )
.arg( Soprano::Node::resourceToN3( Nepomuk::Vocabulary::NIE::url() ),
Soprano::Node::resourceToN3( Nepomuk::Vocabulary::NFO::fileName() \
),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic