List Info

Thread: Re: Abort() when using QueryParser.setAllowLeadingWildcard()




Re: Abort() when using QueryParser.setAllowLeadingWildcard()
country flaguser name
United States
2007-04-05 18:53:12
> 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
reddypixar.com                                    
Emeryville, CA 94608
http://MartinReddy.net/  
                          Tel. (510) 922 4093
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )