summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/fulltext.cpp1
-rw-r--r--core/fulltext.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/fulltext.cpp b/core/fulltext.cpp
index 9dc6d826c..38afb0798 100644
--- a/core/fulltext.cpp
+++ b/core/fulltext.cpp
@@ -278,6 +278,7 @@ FullTextResult FullText::find(const FullTextQuery &q, StringFilterMode mode) con
FullTextQuery &FullTextQuery::operator=(const QString &s)
{
+ originalQuery = s;
words.clear();
tokenize(s, words);
return *this;
diff --git a/core/fulltext.h b/core/fulltext.h
index 108749e1d..2f1c63db1 100644
--- a/core/fulltext.h
+++ b/core/fulltext.h
@@ -45,6 +45,7 @@ enum class StringFilterMode {
// A fulltext query. Basically a list of normalized words we search for
struct FullTextQuery {
std::vector<QString> words;
+ QString originalQuery; // Remember original query, which will be written to the log
FullTextQuery &operator=(const QString &); // Initialize by assigning a user-provided search string
bool doit() const; // true if we should to a fulltext search
};