[Xapian-discuss] Total matches found and how to disable stemming.

Olly Betts olly at survex.com
Thu Mar 9 00:23:45 GMT 2006


On Tue, Mar 07, 2006 at 08:57:24AM -0800, Kevin SoftDev wrote:
> 1.) Please can somebody let me know what is the best way to find total
> matches on  terms?

MSet::get_matches_estimated() :

http://www.xapian.org/docs/apidoc/html/classXapian_1_1MSet.html#eab0a82126d9f2cf0ef5321549ea9775

This is an estimate - you can find out upper and lower bounds on the
value with MSet::get_matches_upper_bound() and
MSet::get_matches_lower_bound().

> 2.) How do I disable stemming. I think Xapian keep stemming terms despite my
> terms are not in English.

I assume you mean at search time when using the QueryParser, in which
case you want to call QueryParser::set_stemming_strategy() with
QueryParser::STEM_NONE.

Cheers,
    Olly



More information about the Xapian-discuss mailing list