<div>Olly,</div>
<div> </div>
<div>Yes I tried but I am nit sure if I understand the right syntax in Perl. Is this one correct ? Because does not seems to work. </div>
<div> </div>
<div>my $qp = Search::Xapian::QueryParser->new();<br>$qp->set_stemming_strategy(STEM_NONE); <br>my $enq = $db->enquire($qp->parse_query($terms));</div>
<div> </div>
<div>Kevin<br><br><br> </div>
<div><span class="gmail_quote">On 3/8/06, <b class="gmail_sendername">Olly Betts</b> <<a href="mailto:olly@survex.com">olly@survex.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, Mar 07, 2006 at 08:57:24AM -0800, Kevin SoftDev wrote:<br>> 1.) Please can somebody let me know what is the best way to find total
<br>> matches on terms?<br><br>MSet::get_matches_estimated() :<br><br><a href="http://www.xapian.org/docs/apidoc/html/classXapian_1_1MSet.html#eab0a82126d9f2cf0ef5321549ea9775">http://www.xapian.org/docs/apidoc/html/classXapian_1_1MSet.html#eab0a82126d9f2cf0ef5321549ea9775
</a><br><br>This is an estimate - you can find out upper and lower bounds on the<br>value with MSet::get_matches_upper_bound() and<br>MSet::get_matches_lower_bound().<br><br>> 2.) How do I disable stemming. I think Xapian keep stemming terms despite my
<br>> terms are not in English.<br><br>I assume you mean at search time when using the QueryParser, in which<br>case you want to call QueryParser::set_stemming_strategy() with<br>QueryParser::STEM_NONE.<br><br>Cheers,<br>
Olly<br></blockquote></div><br>