diff options
Diffstat (limited to 'common/fulltextindex.h')
-rw-r--r-- | common/fulltextindex.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/fulltextindex.h b/common/fulltextindex.h index e06f29d..f24af3b 100644 --- a/common/fulltextindex.h +++ b/common/fulltextindex.h | |||
@@ -29,6 +29,13 @@ public: | |||
29 | 29 | ||
30 | QVector<QByteArray> lookup(const QString &key); | 30 | QVector<QByteArray> lookup(const QString &key); |
31 | 31 | ||
32 | qint64 getDoccount() const; | ||
33 | struct Result { | ||
34 | bool found{false}; | ||
35 | QStringList terms; | ||
36 | }; | ||
37 | Result getIndexContent(const QByteArray &identifier) const; | ||
38 | |||
32 | private: | 39 | private: |
33 | Xapian::WritableDatabase* writableDatabase(); | 40 | Xapian::WritableDatabase* writableDatabase(); |
34 | Q_DISABLE_COPY(FulltextIndex); | 41 | Q_DISABLE_COPY(FulltextIndex); |