On Thu, 23 Aug 2007, [EMAIL PROTECTED] wrote:
Is it possible to create a ConstantScoreQuery using a python-defined filter?
I'm trying the following, and I get the pasted error:
class MyFilter(object):
... def bits(self, reader):
... return BitSet()
...
f=MyFilter()
q=ConstantScoreQuery(f)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
pybackend.thirdparty.PyLucene.lnxpyd.PyLucene.InvalidArgsError: (<type
'PyLucene.ConstantScoreQuery'>, '__init__', (<__main__.MyFilter object at
0xb7cda14c>,))
There is a bug in the ConstantScoreQuery constructor wrapper. It's not setup
to accept python filters. I fixed that now in svn rev 338.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev