Home | Trees | Indices | Help |
|
---|
|
Class representing a query. Queries are represented as a tree of objects.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
OP_AND = 0
|
|||
OP_AND_MAYBE = 4
|
|||
OP_AND_NOT = 2
|
|||
OP_ELITE_SET = 10
|
|||
OP_FILTER = 5
|
|||
OP_NEAR = 6
|
|||
OP_OR = 1
|
|||
OP_PHRASE = 7
|
|||
OP_SCALE_WEIGHT = 9
|
|||
OP_VALUE_RANGE = 8
|
|||
OP_XOR = 3
|
|
|||
thisown The membership flag |
|||
Inherited from |
|
Construct a value range query on a document value. Xapian::Query::Query(Query::op op_, Xapian::valueno valno, const std::string &begin, const std::string &end) A value range query matches those documents which have a value stored in the slot given by valno which is in the range specified by begin and end (in lexicographical order), including the endpoints. Parameters: ----------- op_: The operator to use for the query. Currently, must be OP_VALUE_RANGE. valno: The slot number to get the value from. begin: The start of the range. end: The end of the range.
|
Get an iterator over the terms in a query. The iterator will return string objects. |
repr(x)
|
Return a string describing this object. std::string Xapian::Query::get_description() const
|
Destructor. Xapian::Query::~Query() |
Test if the query is empty (i.e. bool Xapian::Query::empty() const was constructed using the default ctor or with an empty iterator ctor). |
Return a string describing this object. std::string Xapian::Query::get_description() const |
Get the length of the query, used by some ranking formulae. Xapian::termcount Xapian::Query::get_length() const This value is calculated automatically - if you want to override it you can pass a different value to Enquire::set_query(). |
Return a Xapian::TermIterator returning all the terms in the query, in order of termpos. TermIterator Xapian::Query::get_terms_begin() const If multiple terms have the same term position, their order is unspecified. Duplicates (same term and termpos) will be removed. |
Return a Xapian::TermIterator to the end of the list of terms in the query. TermIterator Xapian::Query::get_terms_end() const |
|
thisownThe membership flag
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Mar 3 16:37:58 2010 | http://epydoc.sourceforge.net |