Akonadi Search
xapiansearchstore.cpp
56 Q_ASSERT_X(op == Xapian::Query::OP_AND || op == Xapian::Query::OP_OR, "XapianSearchStore::toXapianQuery", "The op must be AND / OR");
86 return negate(term.isNegated(), constructQuery(term.property(), term.value(), term.comparator()));
123 qCDebug(AKONADI_SEARCH_XAPIAN_LOG) << "Failed to reopen database" << dbPath() << ":" << QString::fromStdString(e.get_msg());
141 xapQ = andQuery(xapQ, constructFilterQuery(query.yearFilter(), query.monthFilter(), query.dayFilter()));
180 Q_ASSERT_X(m_queryMap.contains(queryId), "FileSearchStore::id", "Passed a queryId which does not exist");
272Xapian::Query XapianSearchStore::applyCustomOptions(const Xapian::Query &q, const QVariantMap &options)
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...
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
bool contains(const Key &key) const const
bool remove(const Key &key)
T value(const Key &key) const const
iterator begin()
bool empty() const const
iterator end()
bool isEmpty() const const
void reserve(qsizetype size)
qsizetype size() const const
QString fromStdString(const std::string &str)
std::string toStdString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.