[pylucene-dev] Abort() when using
QueryParser.setAllowLeadingWildcard()
Martin Reddy
reddy at pixar.com
Thu Apr 5 16:53:12 PDT 2007
> On Thu, 5 Apr 2007, Martin Reddy wrote:
> > The setAllowLeadingWildcard() function always aborts for me. E.g., the
> > following code causes an abort() to happen within Python and exits the
> > interpreter:
> >
> > from PyLucene import QueryParser, StandardAnalyzer
> > parser = QueryParser("Hello World", StandardAnalyzer())
> > parser.setAllowLeadingWildcard()
>
> Indeed, the wrappers were declared wrong.
> The correct call now is: parser.setAllowLeadingWildcard(True/False)
Thanks Andi! I've updated lucene.cpp in our install to specify METH_O instead
of METH_NOARGS in the wrapper and all works great now. Thanks for the quick
response.
Cheers,
Martin.
---------------------------------------------------------------------------
Martin Reddy Pixar Animation Studios
1200 Park Avenue
reddy at pixar.com Emeryville, CA 94608
http://MartinReddy.net/ Tel. (510) 922 4093
More information about the pylucene-dev
mailing list