summaryrefslogtreecommitdiffstats
path: root/common/fulltextindex.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-27 17:55:42 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-27 17:55:42 +0200
commit98411f1b4af7a420d81d4de0f6115be81680896f (patch)
tree25640f0c6a6df4eebb517c9e814e344dd60cbea2 /common/fulltextindex.cpp
parentce1042b397a11649ccc87293ef765fb3969e7799 (diff)
downloadsink-98411f1b4af7a420d81d4de0f6115be81680896f.tar.gz
sink-98411f1b4af7a420d81d4de0f6115be81680896f.zip
Don't print all results.
Diffstat (limited to 'common/fulltextindex.cpp')
-rw-r--r--common/fulltextindex.cpp2
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);