[pylucene-dev] Issues with PorterStemmerAnalyzer, MutliTermQueryParser in PyLucene-JCC

Andi Vajda vajda at osafoundation.org
Wed May 21 22:48:30 PDT 2008


On Thu, 22 May 2008, Rajendra Prasad Murakonda wrote:

> On 5/21/08, Andi Vajda <vajda at osafoundation.org> wrote:
>>
>>
>> Maybe you found a bug. Could you please send in a small python program that
>> reproduces the problem.
>>
>
> Hey, I tried to write a sample program to reproduce the error. But strangely
> in the sample program PorterStemmerAnalyzer is not working at all. Whenever
> I try to initialize PoterStemmerAnalyzer() the program crashes and a windows
> error occurs which says "python.exe has encountered a problem and needs to
> close. We are sorry for the incovenience".
>
> Where as in my project I am able to use PorterStemmerAnalyzer by
> initializing it only once. If I initialize more than once then I get a
> slightly different error than the above which says python.exe requested
> abrupt termination.
>
> I am attaching the files. I am not sure whether the attachments will come
> through the mailing list or not so I am ccing the mail to you.

I get no errors even after I change your code to uncomment the uses of 
PorterStemmerAnalyzer.

     yuzu:vajda> python PorterStemmerTest.py
     Number of hits:  1
     yuzu:vajda> python PorterStemmerTest.py
     Number of hits:  1
     yuzu:vajda> python PorterStemmerTest.py
     Number of hits:  1

This is not to say that there isn't actually a bug. I'm just saying that I 
can't reproduce it with the code you submitted. What version of PyLucene are 
you using ?

Andi..


More information about the pylucene-dev mailing list