Here's a printout of what I'm seeing: UpLibQueryParser.parse('_query_language:nl janssen')... => lucene.VERSION: 3.0.2 , jcc._jcc.JCC_VERSION 2.6 => Exception received is JavaError(<Throwable: org.apache.jcc.PythonException: Query specifies language 'nl' Traceback (most recent call last): File "/u/python/uplib/indexing.py", line 591, in getFieldQuery raise RequiresQueryLanguage(text) __main__.RequiresQueryLanguage: Query specifies language 'nl' >,)
Is there some way to check to see if lucene is using --shared at runtime? The actual exception class I'm raising: class RequiresQueryLanguage (Exception): def __init__(self, msg): Exception.__init__(self, "Query specifies language '%s'" % msg) self.language = msg from this code segment: elif (fieldname == "_query_language"): if not _check_analyzer(self.getAnalyzer(), fieldtext): raise RequiresQueryLanguage(fieldtext) else: # we want to remove it if the condition is satisfied return None Bill