[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesupport/strigi/src/luceneindexer
From: Jos van den Oever <jos () vandenoever ! info>
Date: 2009-01-21 10:27:13
Message-ID: 1232533633.631128.20136.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 914509 by vandenoever:
Report query errors on stderr instead of stdout.
M +5 -5 cluceneindexreader.cpp
--- trunk/kdesupport/strigi/src/luceneindexer/cluceneindexreader.cpp #914508:914509
@@ -426,7 +426,7 @@
// try to do a constant score query
//QueryFilter* filter = _CLNEW QueryFilter(&bq);
ConstantScoreQuery csq(filter);*/
- printf("could not query: %s\n", err.what());
+ fprintf(stderr, "could not query: %s\n", err.what());
}
delete hits;
searcher.close();
@@ -454,7 +454,7 @@
hits = searcher.search(bq);
s = hits->length();
} catch (CLuceneError& err) {
- printf("could not query: %s\n", err.what());
+ fprintf(stderr, "could not query: %s\n", err.what());
}
if (off < 0) off = 0;
max += off;
@@ -557,7 +557,7 @@
hits = searcher.search(bq);
s = hits->length();
} catch (CLuceneError& err) {
- printf("could not query: %s\n", err.what());
+ fprintf(stderr, "could not query: %s\n", err.what());
}
if (off < 0) off = 0;
max += off;
@@ -726,7 +726,7 @@
hits = searcher.search(bq);
s = hits->length();
} catch (CLuceneError& err) {
- printf("could not query: %s\n", err.what());
+ fprintf(stderr, "could not query: %s\n", err.what());
}
wstring field = utf8toucs2(fieldname);
int32_t max = INT_MIN;
@@ -842,7 +842,7 @@
hits = searcher.search(q);
nhits = hits->length();
} catch (CLuceneError& err) {
- printf("could not query: %s\n", err.what());
+ fprintf(stderr, "could not query: %s\n", err.what());
}
const TCHAR* mtime = mapId(Private::mtime());
for (int i = 0; i < nhits; ++i) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic