[pylucene-dev] Issues with PorterStemmerAnalyzer,
MutliTermQueryParser in PyLucene-JCC
Rajendra Prasad Murakonda
rajendra.prasad at gmail.com
Wed May 21 02:59:31 PDT 2008
On 5/21/08, Andi Vajda <vajda at osafoundation.org> wrote:
> On Wed, 21 May 2008, Rajendra Prasad Murakonda wrote:
> But why can't I pass PorterStemmerAnalyzer as an analyzer to
>> Is it a restriction placed by PuLucene-JCC?
> I don't know. You're not showing your code, how can I help you debug it ?
> I just inserted some debugging statements to the sample code and it works
> fine. I can pass a PorterStemmerAnalyzer instance to IndexModifier, see
I figured out the problem. Earlier I was unable to pass PoterStemmerAnalyzer
to IndexModifier because my version of PorterStemmerAnalyzer is inheriting
from Object where as the PorterStemmerAnalyzer present in your samples is
inheriting from the lucene.PythonAnalyzer.
Once I changed it I was getting a Visual Studio C++ error saying that
python.exe is terminated abruptly. If I create PorterStemmerAnalyzer more
than once in the same scope, I am getting this error. If I create the
PorterStemmerAnalyzer() only once and use it everywhere then this problem is
not there. Any idea why can't I create more than one PorterStemmerAnalyzer
in the same scope?
Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pylucene-dev