Hi, I am trying to subclass lucene.PythonHitCollector to use the HitCollector features of Lucene, but I get this error:
File "/home/max/test/spider/src/ras/spider/spider.py", line 812, in __init__ super(lucene.PythonHitCollector, self).__init__() lucene.JavaError: java.lang.InstantiationException: org.apache.lucene.search.HitCollector The class I am using: class MyHitCollector(lucene.PythonHitCollector): def __init__(self): super(lucene.PythonHitCollector, self).__init__() def collect(doc, score): print "Collecting doc %d" % doc return I thought that this would work fine if I used the PythonHitCollector instead of the HitCollector. Is there something else I need to do? Thanks, Max