summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/fulltextindex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/fulltextindex.cpp b/common/fulltextindex.cpp
index e57a562..bf0151e 100644
--- a/common/fulltextindex.cpp
+++ b/common/fulltextindex.cpp
@@ -73,6 +73,8 @@ void FulltextIndex::add(const QByteArray &key, const QList<QPair<QString, QStrin
73 for (const auto &entry : values) { 73 for (const auto &entry : values) {
74 if (!entry.second.isEmpty()) { 74 if (!entry.second.isEmpty()) {
75 generator.index_text(entry.second.toStdString()); 75 generator.index_text(entry.second.toStdString());
76 //Prevent phrase searches from spanning different indexed parts
77 generator.increase_termpos();
76 } 78 }
77 } 79 }
78 document.add_value(0, key.toStdString()); 80 document.add_value(0, key.toStdString());