[pylucene-dev] How to get details of JavaError / Bug in Lucene? (max term length)

Andi Vajda vajda at osafoundation.org
Mon Nov 12 09:23:54 PST 2007


On Mon, 12 Nov 2007, Thomas Koch wrote:

> Is there any way to get more details of a JavaError in PyLucene? It seems
> that the method getJavaException() only returns the Exception message, but
> not the full stack trace.

When you get a JavaError raised in Python, the getJavaException() method can 
be used to retrieve the corresponding Java Exception object. That Java object 
has a number of methods on it that you can call. One of them is 
printStackTrace(). This is described in jcc/README around line 367.

> Has anyone encounterd this yet or found a workaround? E.g. is it possible to
> configure lucene to ignore terms of a specified length at all? (Without
> raising an Exception)

That is a question for java-users at lucene.apache.org.

Andi..


More information about the pylucene-dev mailing list