On May 21, 2008, at 2:59 AM, "Rajendra Prasad Murakonda" <[EMAIL PROTECTED] > wrote:

On 5/21/08, Andi Vajda <[EMAIL PROTECTED]> wrote:

On Wed, 21 May 2008, Rajendra Prasad Murakonda wrote:

But why can't I pass PorterStemmerAnalyzer as an analyzer to IndexModifier?
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 below:

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?

Maybe you found a bug. Could you please send in a small python program that reproduces the problem.

Thanks !

Andi..


Thanks a lot,
- Raj
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to