#include <queryparser.h>
Collaboration diagram for Xapian::QueryParser:
Public Types | |
enum | feature_flag { FLAG_BOOLEAN = 1, FLAG_PHRASE = 2, FLAG_LOVEHATE = 4 } |
Enum of feature flags. More... | |
enum | stem_strategy { STEM_NONE, STEM_SOME, STEM_ALL } |
Public Member Functions | |
QueryParser (const QueryParser &o) | |
Copy constructor. | |
QueryParser & | operator= (const QueryParser &o) |
Assignment. | |
QueryParser () | |
Default constructor. | |
~QueryParser () | |
Destructor. | |
void | set_stemmer (const Xapian::Stem &stemmer) |
Set the stemmer. | |
void | set_stemming_strategy (stem_strategy strategy) |
Set the stemming strategy. | |
void | set_stopper (const Stopper *stop=NULL) |
Set the stopper. | |
void | set_stemming_options (const std::string &lang, bool stem_all=false, const Stopper *stop=NULL) |
Deprecated method for backward compatibility. | |
void | set_default_op (Query::op default_op) |
Set the default boolean operator. | |
Query::op | get_default_op () const |
Get the default boolean operator. | |
void | set_database (const Database &db) |
Specify the database being searched. | |
Query | parse_query (const std::string &query_string) |
Parse a query. | |
void | add_prefix (const std::string &field, const std::string &prefix) |
void | add_boolean_prefix (const std::string &field, const std::string &prefix) |
TermIterator | stoplist_begin () const |
TermIterator | stoplist_end () const |
TermIterator | unstem_begin (const std::string &term) const |
TermIterator | unstem_end (const std::string &) const |
std::string | get_description () const |
Return a string describing this object. | |
Public Attributes | |
Xapian::Internal::RefCntPtr< Internal > | internal |
Reference counted internals. |
|
Enum of feature flags.
|
|
Copy constructor.
|
|
Default constructor.
|
|
Destructor.
|
|
Get the default boolean operator.
|
|
Return a string describing this object.
|
|
Assignment.
|
|
Parse a query.
|
|
Specify the database being searched.
|
|
Set the default boolean operator.
|
|
Set the stemmer.
|
|
Deprecated method for backward compatibility.
|
|
Set the stemming strategy.
|
|
Set the stopper.
|
|
Reference counted internals.
|