diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-13 18:38:35 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-02-11 23:03:17 +0100 |
commit | 6051c1247cde61bcc8e483eb4166e5a297c0ecc6 (patch) | |
tree | df3aba1ef4011f2640b17c8cf7a9b106933231ab /common/indexer.cpp | |
parent | 8740a007515dcf1b315d69ab5c64fcfd40ec980c (diff) | |
download | sink-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.cpp | 3 |
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 | ||
21 | using namespace Sink; | 21 | using namespace Sink; |
22 | 22 | ||
23 | void Indexer::setup(TypeIndex *index, Storage::DataStore::Transaction *transaction) | 23 | void 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 | ||
29 | Storage::DataStore::Transaction &Indexer::transaction() | 30 | Storage::DataStore::Transaction &Indexer::transaction() |