1 MODULE = Search::Xapian PACKAGE = Search::Xapian::Enquire
6 Enquire::new(databases)
10 RETVAL = XAPIAN_PERL_NEW(Enquire, (*databases));
18 Enquire::set_query1(query)
22 THIS->set_query(*query);
28 Enquire::set_query2(query, len)
33 THIS->set_query(*query, len);
42 RETVAL = new Query(THIS->get_query());
50 Enquire::set_collapse_key(collapse_key, collapse_max = 1)
55 THIS->set_collapse_key(collapse_key, collapse_max);
61 Enquire::set_docid_order(order)
65 THIS->set_docid_order(static_cast<Enquire::docid_order>(order));
71 Enquire::set_cutoff(percent_cutoff, weight_cutoff = NO_INIT)
76 if (items == 3) { /* items includes the hidden this pointer */
77 THIS->set_cutoff(percent_cutoff, weight_cutoff);
79 THIS->set_cutoff(percent_cutoff);
86 Enquire::set_sort_by_relevance()
88 // Clear reference to any currently set sorter object.
89 XAPIAN_PERL_REF(Enquire, THIS, sorter, NULL);
90 THIS->set_sort_by_relevance();
93 Enquire::set_sort_by_value(sort_key, ascending = true)
97 // Clear reference to any currently set sorter object.
98 XAPIAN_PERL_REF(Enquire, THIS, sorter, NULL);
100 THIS->set_sort_by_value(sort_key, ascending);
106 Enquire::set_sort_by_value_then_relevance(sort_key, ascending = true)
110 // Clear reference to any currently set sorter object.
111 XAPIAN_PERL_REF(Enquire, THIS, sorter, NULL);
113 THIS->set_sort_by_value_then_relevance(sort_key, ascending);
119 Enquire::set_sort_by_relevance_then_value(sort_key, ascending = true)
123 // Clear reference to any currently set sorter object.
124 XAPIAN_PERL_REF(Enquire, THIS, sorter, NULL);
126 THIS->set_sort_by_relevance_then_value(sort_key, ascending);
132 Enquire::set_sort_by_key(sorter, ascending = true)
133 MultiValueKeyMaker * sorter
136 // Keep a reference to the currently set object.
137 XAPIAN_PERL_REF(Enquire, THIS, sorter, ST(1));
139 THIS->set_sort_by_key(sorter, ascending);
145 Enquire::set_sort_by_key_then_relevance(sorter, ascending = true)
146 MultiValueKeyMaker * sorter
149 // Keep a reference to the currently set object.
150 XAPIAN_PERL_REF(Enquire, THIS, sorter, ST(1));
152 THIS->set_sort_by_key_then_relevance(sorter, ascending);
158 Enquire::set_sort_by_relevance_then_key(sorter, ascending = true)
159 MultiValueKeyMaker * sorter
162 // Keep a reference to the currently set object.
163 XAPIAN_PERL_REF(Enquire, THIS, sorter, ST(1));
165 THIS->set_sort_by_relevance_then_key(sorter, ascending);
171 Enquire::get_mset1(first, maxitems, checkatleast = NO_INIT, rset = NO_INIT, func = NO_INIT)
174 doccount checkatleast
180 switch (items) { /* items includes the hidden this pointer */
182 mset = THIS->get_mset(first, maxitems);
185 mset = THIS->get_mset(first, maxitems, checkatleast);
188 mset = THIS->get_mset(first, maxitems, checkatleast, rset);
191 perlMatchDecider d(func);
192 mset = THIS->get_mset(first, maxitems, checkatleast, rset, &d);
196 croak("Bad parameter count for get_mset1");
198 RETVAL = new MSet(mset);
206 Enquire::get_mset2(first, maxitems, func)
212 perlMatchDecider d(func);
213 RETVAL = new MSet(THIS->get_mset(first, maxitems, 0, NULL, &d));
221 Enquire::get_eset(maxitems, rset, func = NO_INIT)
228 switch (items) { /* items includes the hidden this pointer */
230 eset = THIS->get_eset(maxitems, *rset);
233 perlExpandDecider d(func);
234 eset = THIS->get_eset(maxitems, *rset, &d);
238 croak("Bad parameter count for get_eset");
240 RETVAL = new ESet(eset);
248 Enquire::get_matching_terms_begin1(docid did)
251 RETVAL = new TermIterator(THIS->get_matching_terms_begin(did));
259 Enquire::get_matching_terms_begin2(it)
263 RETVAL = new TermIterator(THIS->get_matching_terms_begin(* it));
271 Enquire::get_matching_terms_end1(docid did)
274 RETVAL = new TermIterator(THIS->get_matching_terms_end(did));
282 Enquire::get_matching_terms_end2(it)
286 RETVAL = new TermIterator(THIS->get_matching_terms_end(* it));
294 Enquire::set_weighting_scheme(weight_)
298 THIS->set_weighting_scheme(*weight_);
304 Enquire::get_description()
307 Enquire::add_matchspy(MatchSpy * spy)
310 XAPIAN_PERL_REF(Enquire, THIS, matchspy, ST(1));
311 THIS->add_matchspy(spy);
317 Enquire::clear_matchspies()
320 XAPIAN_PERL_REF(Enquire, THIS, clear_matchspies, NULL);
321 THIS->clear_matchspies();
329 XAPIAN_PERL_DESTROY(Enquire, THIS);