summaryrefslogtreecommitdiffstats
path: root/common/typeindex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r--common/typeindex.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index f537493..272237c 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -142,9 +142,9 @@ QVector<QByteArray> TypeIndex::query(const Sink::Query &query, QSet<QByteArray>
142{ 142{
143 QVector<QByteArray> keys; 143 QVector<QByteArray> keys;
144 for (auto it = mSortedProperties.constBegin(); it != mSortedProperties.constEnd(); it++) { 144 for (auto it = mSortedProperties.constBegin(); it != mSortedProperties.constEnd(); it++) {
145 if (query.propertyFilter.contains(it.key()) && query.sortProperty == it.value()) { 145 if (query.hasFilter(it.key()) && query.sortProperty == it.value()) {
146 Index index(indexName(it.key(), it.value()), transaction); 146 Index index(indexName(it.key(), it.value()), transaction);
147 const auto lookupKey = getByteArray(query.propertyFilter.value(it.key()).value); 147 const auto lookupKey = getByteArray(query.getFilter(it.key()).value);
148 SinkTrace() << "looking for " << lookupKey; 148 SinkTrace() << "looking for " << lookupKey;
149 index.lookup(lookupKey, [&](const QByteArray &value) { keys << value; }, 149 index.lookup(lookupKey, [&](const QByteArray &value) { keys << value; },
150 [it](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << it.key() << it.value(); }, true); 150 [it](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << it.key() << it.value(); }, true);
@@ -155,9 +155,9 @@ QVector<QByteArray> TypeIndex::query(const Sink::Query &query, QSet<QByteArray>
155 } 155 }
156 } 156 }
157 for (const auto &property : mProperties) { 157 for (const auto &property : mProperties) {
158 if (query.propertyFilter.contains(property)) { 158 if (query.hasFilter(property)) {
159 Index index(indexName(property), transaction); 159 Index index(indexName(property), transaction);
160 const auto lookupKey = getByteArray(query.propertyFilter.value(property).value); 160 const auto lookupKey = getByteArray(query.getFilter(property).value);
161 index.lookup( 161 index.lookup(
162 lookupKey, [&](const QByteArray &value) { keys << value; }, [property](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; }); 162 lookupKey, [&](const QByteArray &value) { keys << value; }, [property](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << property; });
163 appliedFilters << property; 163 appliedFilters << property;