Akonadi Search
xapiansearchstore.h
51 virtual Xapian::Query constructQuery(const QString &property, const QVariant &value, Term::Comparator com) = 0;
97 [[nodiscard]] AKONADI_SEARCH_XAPIAN_NO_EXPORT Xapian::Query toXapianQuery(Xapian::Query::op op, const QList<Term> &terms);
99 [[nodiscard]] AKONADI_SEARCH_XAPIAN_NO_EXPORT Xapian::Query constructSearchQuery(const QString &str);
virtual QStringList types()=0
Returns a list of types which can be searched for in this store.
virtual QUrl constructUrl(const Xapian::docid &docid)=0
Returns the url for the document with id docid.
int exec(const Query &query) override
Executes the particular query synchronously.
Definition xapiansearchstore.cpp:111
virtual Xapian::Query finalizeQuery(const Xapian::Query &query)
Apply any final touches to the query.
Definition xapiansearchstore.cpp:267
virtual Xapian::Query convertTypes(const QStringList &types)=0
Gives a list of types which have been provided with the query.
virtual QByteArray idPrefix()=0
The prefix that should be used when converting an integer id to a byte array.
virtual Xapian::Query applyCustomOptions(const Xapian::Query &q, const QVariantMap &options)
Create a query for any custom options.
Definition xapiansearchstore.cpp:272
Xapian::Query andQuery(const Xapian::Query &a, const Xapian::Query &b)
Convenience function to AND two Xapian queries together.
Definition xapiansearchstore.cpp:89
virtual void setDbPath(const QString &path)
Set the path of the xapian database.
Definition xapiansearchstore.cpp:31
virtual Xapian::Query constructQuery(const QString &property, const QVariant &value, Term::Comparator com)=0
The derived class should implement the logic for constructing the appropriate Xapian::Query class fro...
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.