1 MODULE = Search::Xapian PACKAGE = Search::Xapian::QueryParser
8 RETVAL = XAPIAN_PERL_NEW(QueryParser, ());
13 QueryParser::set_stemmer(stemmer)
16 THIS->set_stemmer(*stemmer);
19 QueryParser::set_stemming_strategy(strategy)
22 THIS->set_stemming_strategy(static_cast<QueryParser::stem_strategy>(strategy));
25 QueryParser::set_stopper(stopper)
28 // Keep a reference to the currently set object.
29 XAPIAN_PERL_REF(QueryParser, THIS, stopper, ST(1));
30 THIS->set_stopper(stopper);
33 QueryParser::set_default_op(op)
36 THIS->set_default_op(static_cast<Query::op>(op));
39 QueryParser::get_default_op()
41 RETVAL = static_cast<int>(THIS->get_default_op());
46 QueryParser::set_database(database)
49 THIS->set_database(*database);
52 QueryParser::set_max_wildcard_expansion(termcount limit)
54 #if XAPIAN_AT_LEAST(1,5,0)
55 THIS->set_max_expansion(limit,
56 Xapian::Query::WILDCARD_LIMIT_ERROR,
57 Xapian::QueryParser::FLAG_WILDCARD);
59 THIS->set_max_wildcard_expansion(limit);
63 QueryParser::parse_query(q, flags = QueryParser::FLAG_DEFAULT)
68 RETVAL = new Query(THIS->parse_query(q,flags));
76 QueryParser::add_prefix(string field, string prefix)
79 QueryParser::add_boolean_prefix(string field, string prefix)
82 QueryParser::stoplist_begin()
84 RETVAL = new TermIterator(THIS->stoplist_begin());
89 QueryParser::stoplist_end()
91 RETVAL = new TermIterator(THIS->stoplist_end());
96 QueryParser::unstem_begin(term)
99 RETVAL = new TermIterator(THIS->unstem_begin(term));
104 QueryParser::unstem_end(term)
107 RETVAL = new TermIterator(THIS->unstem_end(term));
112 QueryParser::get_corrected_query_string()
115 RETVAL = THIS->get_corrected_query_string();
123 QueryParser::get_description()
126 QueryParser::add_valuerangeprocessor(ValueRangeProcessor * vrproc)
128 // Keep a reference to the currently set object.
129 XAPIAN_PERL_REF(QueryParser, THIS, vrp, ST(1));
130 THIS->add_valuerangeprocessor(vrproc);
133 QueryParser::DESTROY()
135 XAPIAN_PERL_DESTROY(QueryParser, THIS);