diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-27 12:18:06 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-27 13:15:22 +0200 |
commit | 0a6229931ac90fa8914dbdafef51adf5ca92a206 (patch) | |
tree | 9d4821ecc211842071f023a2465e9a5f4cdb3c7d /common/fulltextindex.h | |
parent | 5e421481b95bc46aae05260e0afc6aa32945e62f (diff) | |
download | sink-0a6229931ac90fa8914dbdafef51adf5ca92a206.tar.gz sink-0a6229931ac90fa8914dbdafef51adf5ca92a206.zip |
All xapian stuff in a central place
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); |