Bring out SmartChineseAnalyzer in PyLucene?

2010-09-25 Thread Bill Janssen
I'd like to be able to use the HMM-based Chinese Tokenizer in PyLucene, available in 3.x as org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer, apparently. I don't see this in PyLucene 3.0.2. Is this because it ends up in separate jar file that isn't part of the PyLucene build? Bill

throwing an exception *through* Java?

2010-09-25 Thread Bill Janssen
I've got a subclass of PythonMultiFieldQueryParser. I'd like to be able to throw a custom Python exception with parameters in that code, and catch it in the Python code that's using it. To do this, the exception has to somehow travel through Java. I thought I could perhaps subclass PythonExcepti

Re: throwing an exception *through* Java?

2010-09-25 Thread Andi Vajda
On Sep 25, 2010, at 13:54, Bill Janssen wrote: I've got a subclass of PythonMultiFieldQueryParser. I'd like to be able to throw a custom Python exception with parameters in that code, and catch it in the Python code that's using it. To do this, the exception has to somehow travel through

Re: Bring out SmartChineseAnalyzer in PyLucene?

2010-09-25 Thread Andi Vajda
On Sep 25, 2010, at 12:45, Bill Janssen wrote: I'd like to be able to use the HMM-based Chinese Tokenizer in PyLucene, available in 3.x as org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer, apparently. I don't see this in PyLucene 3.0.2. Is this because it ends up in separate jar fi

Re: throwing an exception *through* Java?

2010-09-25 Thread Bill Janssen
Andi Vajda wrote: > On Sep 25, 2010, at 13:54, Bill Janssen wrote: > > > I've got a subclass of PythonMultiFieldQueryParser. I'd like to be > > able > > to throw a custom Python exception with parameters in that code, and > > catch it in the Python code that's using it. To do this, the > > ex

Re: Bring out SmartChineseAnalyzer in PyLucene?

2010-09-25 Thread Bill Janssen
Right now you've got this one: ANALYZERS_JAR=$(LUCENE)/build/contrib/analyzers/common/lucene-analyzers-$(LUCENE_VER).jar How about adding: SMARTCNA_JAR=$(LUCENE)/build/contrib/analyzers/smartcn/lucene-smartcn-$(LUCENE_VER).jar and then adding SMARTCNA_JAR to the list of jars? While we're at it