#include <query.h>
Inheritance diagram for Xapian::Query::Internal:
Public Types | |
typedef std::vector< Internal * > | subquery_list |
The container type for storing pointers to subqueries. | |
typedef int | op_t |
Type storing the operation. | |
Public Member Functions | |
Internal (const Query::Internal ©me) | |
Copy constructor. | |
void | operator= (const Query::Internal ©me) |
Assignment. | |
Internal (const std::string &tname_, Xapian::termcount wqf_=1, Xapian::termpos term_pos_=0) | |
A query consisting of a single term. | |
Internal (op_t op_, Xapian::termcount parameter) | |
Create internals given only the operator and a parameter. | |
~Internal () | |
Destructor. | |
void | add_subquery (const Query::Internal &subq) |
Add a subquery. | |
Query::Internal * | end_construction () |
Finish off the construction. | |
std::string | serialise () const |
Return a string in an easily parsed form which contains all the information in a query. | |
std::string | get_description () const |
Returns a string representing the query. | |
Xapian::termcount | get_length () const |
Get the length of the query, used by some ranking formulae. | |
TermIterator | get_terms () const |
Return an iterator over all the terms in the query, in order of termpos. | |
Static Public Member Functions | |
static Xapian::Query::Internal * | unserialise (const std::string &s) |
Static Public Attributes | |
static const int | OP_LEAF = -1 |
Friends | |
class | ::MultiMatch |
class | ::LocalSubMatch |
struct | ::SortPosName |
|
Type storing the operation.
|
|
The container type for storing pointers to subqueries.
|
|
Copy constructor.
|
|
A query consisting of a single term.
|
|
Create internals given only the operator and a parameter.
|
|
Destructor.
|
|
Add a subquery.
|
|
Finish off the construction.
|
|
Returns a string representing the query. Introspection method. |
|
Get the length of the query, used by some ranking formulae. This value is calculated automatically - if you want to override it you can pass a different value to Enquire::set_query(). |
|
Return an iterator over all the terms in the query, in order of termpos. If multiple terms have the same term position, their order is unspecified. Duplicates (same term and termpos) will be removed. |
|
Assignment.
|
|
Return a string in an easily parsed form which contains all the information in a query.
|