summaryrefslogtreecommitdiffstats
path: root/common/indexer.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-13 18:38:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-11 23:03:17 +0100
commit6051c1247cde61bcc8e483eb4166e5a297c0ecc6 (patch)
treedf3aba1ef4011f2640b17c8cf7a9b106933231ab /common/indexer.cpp
parent8740a007515dcf1b315d69ab5c64fcfd40ec980c (diff)
downloadsink-6051c1247cde61bcc8e483eb4166e5a297c0ecc6.tar.gz
sink-6051c1247cde61bcc8e483eb4166e5a297c0ecc6.zip
Xapian based fulltext indexing
This cuts into the sync performance by about 40%, but gives us fast fulltext searching for all local content.
Diffstat (limited to 'common/indexer.cpp')
-rw-r--r--common/indexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/indexer.cpp b/common/indexer.cpp
index 1b223b3..c18170c 100644
--- a/common/indexer.cpp
+++ b/common/indexer.cpp
@@ -20,10 +20,11 @@
20 20
21using namespace Sink; 21using namespace Sink;
22 22
23void Indexer::setup(TypeIndex *index, Storage::DataStore::Transaction *transaction) 23void Indexer::setup(TypeIndex *index, Storage::DataStore::Transaction *transaction, const QByteArray &resourceId)
24{ 24{
25 mTypeIndex = index; 25 mTypeIndex = index;
26 mTransaction = transaction; 26 mTransaction = transaction;
27 mResourceInstanceIdentifier = resourceId;
27} 28}
28 29
29Storage::DataStore::Transaction &Indexer::transaction() 30Storage::DataStore::Transaction &Indexer::transaction()