Search for usage in LXR

Akonadi::Search::XapianDocument Class Reference

#include <xapiandocument.h>

Public Member Functions

 XapianDocument (const Xapian::Document &doc)
void addBoolTerm (const QString &term, const QString &prefix=QString())
void addBoolTerm (int term, const QString &prefix)
void addTerm (const QString &term, const QString &prefix=QString())
void addValue (int pos, const QString &value)
Xapian::Document doc () const
QString fetchTermStartsWith (const QByteArray &term)
void indexText (const QString &text, const QString &prefix, int wdfInc=1)
void indexText (const QString &text, int wdfInc=1)
bool removeTermStartsWith (const QByteArray &prefix)

Detailed Description

This class is just a light wrapper over Xapian::Document which provides nice Qt apis.

Definition at line 24 of file xapiandocument.h.

Member Function Documentation

◆ removeTermStartsWith()

bool XapianDocument::removeTermStartsWith ( const QByteArray prefix)

Remove all the terms which start with the prefix prefix.

true if the document was modified

Definition at line 78 of file xapiandocument.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:08:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.