Akonadi::Search::XapianQueryParser

Search for usage in LXR

Akonadi::Search::XapianQueryParser Class Reference

#include <xapianqueryparser.h>

Public Member Functions

Xapian::Query expandWord (const QString &word, const QString &prefix=QString())
 
Xapian::Query parseQuery (const QString &str, const QString &prefix=QString())
 
void setAutoExapand (bool autoexpand)
 
void setDatabase (Xapian::Database *db)
 

Detailed Description

Xapian query parser.

Definition at line 20 of file xapianqueryparser.h.

Member Function Documentation

◆ expandWord()

Xapian::Query XapianQueryParser::expandWord ( const QString & word,
const QString & prefix = QString() )
nodiscard

Expands word to every possible option which it can be expanded to.

Definition at line 224 of file xapianqueryparser.cpp.

◆ parseQuery()

Xapian::Query XapianQueryParser::parseQuery ( const QString & str,
const QString & prefix = QString() )
nodiscard

Definition at line 96 of file xapianqueryparser.cpp.

◆ setAutoExapand()

void XapianQueryParser::setAutoExapand ( bool autoexpand)

Set if each word in the string should be treated as a partial word and should be expanded to every possible word.

Definition at line 219 of file xapianqueryparser.cpp.

◆ setDatabase()

void XapianQueryParser::setDatabase ( Xapian::Database * db)

Definition at line 18 of file xapianqueryparser.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:58:58 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.