[Xapian-devel] How to enable stemming with default_op set to OP_NEAR

Olly Betts olly at survex.com
Thu Dec 15 01:02:19 GMT 2011

On Thu, Dec 15, 2011 at 07:16:14AM +0800, Shen Li wrote:
> I couldn't find where to make changes to enable stemming in
> queryparser. I checked with queryparser.cc and
> queryparser_internal.cc, but haven't find the exact piece of codes
> which disabled stemming when default_op is OP_NEAR. So I guess maybe
> someone here could offer some help, and I really appreciate your time!

Look for add_positional_term() in queryparser/queryparser.lemony.

You'll need to configure with --enable-maintainer-mode so that lemon
gets run to regenerate the parser code.


More information about the Xapian-devel mailing list