[pylucene-dev] can't override QueryParser.parse()
Andi Vajda
vajda at osafoundation.org
Tue Nov 13 20:48:32 PST 2007
On Tue, 13 Nov 2007, Andi Vajda wrote:
> On Tue, 13 Nov 2007, Bill Janssen wrote:
>
>> It crashes for me, too, when I run it with an unmodified JCC.
>>
>> To get the error I reported, I use a much larger codebase. But I
>> think it's the same problem -- the 'value' field isn't of the type
>> reported by the 'exc' field. And it's crashing in the same place,
>> in the call to the Java implementation of getBooleanQuery.
>
> It's crashing because your code example is a little screwy. It's passing a
> MultiFieldQueryParser instance to a QueryParser wrapper. The C++ methods on
> the C++/JNI wrapper are not virtual and hence this is not going to do what
> you think. The fact that getBooleanQuery() is even called makes no sense if
> what you're invoking is parse().
Strike that, I was confused by gdb output. Debugging a python executable with
gdb on leopard, using the system python, is a little problematic. I'm building
my own now...
more in a bit...
Andi..
More information about the pylucene-dev
mailing list