diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-27 17:55:42 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-27 17:55:42 +0200 |
commit | 98411f1b4af7a420d81d4de0f6115be81680896f (patch) | |
tree | 25640f0c6a6df4eebb517c9e814e344dd60cbea2 /common | |
parent | ce1042b397a11649ccc87293ef765fb3969e7799 (diff) | |
download | sink-98411f1b4af7a420d81d4de0f6115be81680896f.tar.gz sink-98411f1b4af7a420d81d4de0f6115be81680896f.zip |
Don't print all results.
Diffstat (limited to 'common')
-rw-r--r-- | common/fulltextindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fulltextindex.cpp b/common/fulltextindex.cpp index cc7fecf..abe29f5 100644 --- a/common/fulltextindex.cpp +++ b/common/fulltextindex.cpp | |||
@@ -172,7 +172,7 @@ QVector<QByteArray> FulltextIndex::lookup(const QString &searchTerm) | |||
172 | 172 | ||
173 | const auto limit = searchTerm.size() <= 4 ? 1000 : 10000; | 173 | const auto limit = searchTerm.size() <= 4 ? 1000 : 10000; |
174 | Xapian::MSet mset = enquire.get_mset(0, limit); | 174 | Xapian::MSet mset = enquire.get_mset(0, limit); |
175 | SinkTrace() << "Result set: " << QString::fromStdString(mset.get_description()); | 175 | SinkTrace() << "Found " << mset.size() << " results, limited to " << limit; |
176 | for (Xapian::MSetIterator it = mset.begin(); it != mset.end(); it++) { | 176 | for (Xapian::MSetIterator it = mset.begin(); it != mset.end(); it++) { |
177 | auto doc = it.get_document(); | 177 | auto doc = it.get_document(); |
178 | const auto data = doc.get_value(0); | 178 | const auto data = doc.get_value(0); |