[Xapian-devel] How to enable stemming with default_op set to OP_NEAR
Shen Li
te_quira at hotmail.com
Thu Dec 15 22:03:45 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.
>
Thank you very much for this help! I've found where should be changed. However, after I changed the queryparser/queryparser.lemony and configured with --enable-maintainer-mode, I couldn't go through the make process. The error message said:
administrator at xapian:~/source/xapian-core-1.2.7> make
cd . && ./preautoreconf
./preautoreconf: Warning: `weight/dir_contents' not found
cd . && /bin/sh /home/administrator/source/xapian-core-1.2.7/missing --run automake-1.11 --gnu Makefile
/usr/bin/autoconf: line 492: exec: : not found
automake-1.11: /bin/sh failed with exit status: 1
make: *** [Makefile.in] Error 1
Then I also tried with a newly untarred xapian package and to configure with --enable-maintainer-mode, and then exactly same error happened again. So I'm wondering whether you have any suggestion about this, and really appreciate your kindly help!
Thanks,
Shen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20111216/02719144/attachment.htm>
More information about the Xapian-devel
mailing list