1 MODULE = Search::Xapian PACKAGE = Search::Xapian::Query
16 RETVAL = new Query(term);
21 new1weight(term, wqf, pos)
26 RETVAL = new Query(term, wqf, pos);
31 new3scale(int op, Query * query, double factor)
33 RETVAL = new Query( (Query::op) op, *query, factor );
38 new3range(op, valno, limit)
43 RETVAL = new Query( (Query::op) op, valno, limit );
48 new4range(op, valno, start, end)
54 RETVAL = new Query( (Query::op) op, valno, start, end );
61 Query::op op = (Query::op)op_;
63 vector<Query> queries;
64 queries.reserve(items - 1);
65 for( int i = 1; i < items; i++ ) {
67 if (sv_isa(sv, "Search::Xapian::Query")) {
68 Query *query = (Query*) SvIV((SV*) SvRV(sv));
69 queries.push_back(*query);
70 } else if ( SvOK(sv) ) {
72 const char * ptr = SvPV(sv, len);
73 queries.push_back(Query(string(ptr, len)));
75 croak( "USAGE: Search::Xapian::Query->new(OP, @TERMS_OR_QUERY_OBJECTS)" );
78 RETVAL = new Query(op, queries.begin(), queries.end());
89 Query::get_terms_begin()
91 RETVAL = new TermIterator(THIS->get_terms_begin());
96 Query::get_terms_end()
98 RETVAL = new TermIterator(THIS->get_terms_end());
106 Query::get_description()