#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. More... | |
typedef int | op_t |
Type storing the operation. More... | |
Public Methods | |
Internal (const Query::Internal ©me) | |
Copy constructor. More... | |
void | operator= (const Query::Internal ©me) |
Assignment. More... | |
Internal (const std::string &tname_, Xapian::termcount wqf_=1, Xapian::termpos term_pos_=0) | |
A query consisting of a single term. More... | |
Internal (op_t op_) | |
Create internals given only the operator. More... | |
~Internal () | |
Destructor. More... | |
void | add_subquery (const Query::Internal &subq) |
Add a subquery. More... | |
Query::Internal * | end_construction () |
Finish off the construction. More... | |
std::string | serialise () const |
Return a string in an easily parsed form which contains all the information in a query. More... | |
std::string | get_description () const |
Returns a string representing the query. More... | |
void | set_window (Xapian::termpos window) |
Set window for NEAR or PHRASE queries. More... | |
void | set_cutoff (double cutoff) |
Set cutoff for *_CUTOFF queries. More... | |
void | set_elite_set_size (Xapian::termcount size) |
Set elite set size. More... | |
Xapian::termcount | get_length () const |
Get the length of the query, used by some ranking formulae. More... | |
Xapian::termcount | set_length (Xapian::termcount qlen_) |
Set the length of the query. More... | |
TermIterator | get_terms () const |
Return an iterator over all the terms in the query, in order of termpos. More... | |
Static Public Methods | |
Xapian::Query::Internal * | unserialise (const std::string &s) |
Static Public Attributes | |
const int | OP_LEAF = -1 |
Friends | |
class | MultiMatch |
class | LocalSubMatch |
class | 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.
|
|
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, but may be overridden using set_length(). |
|
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.
|
|
Set cutoff for *_CUTOFF queries.
|
|
Set elite set size.
|
|
Set the length of the query. This overrides the automatically calculated value, which may be desirable in some situations. Returns the old value of the query length. |
|
Set window for NEAR or PHRASE queries.
|