[pylucene-dev] MultiFieldQueryParser
Steve Jenson
stevej at pobox.com
Tue Jan 4 11:16:38 PST 2005
Thank you, it works like a charm now.
-steve
On Jan 3, 2005, at 11:51 PM, Andi Vajda wrote:
>
> Indeed, there was a bug related to SWIG strangeness. The scope of the
> %rename directive in QueryParser needed to be limited to that one
> method. %rename acts more globally than expected. My bad, this is even
> documented:
> http://www.swig.org/Doc1.3/SWIGPlus.html#ambiguity_resolution_renaming
>
> I incorporated your unit test to test_PyLucene.py, it passes now.
> Thanks !
>
> Andi..
>
> On Mon, 3 Jan 2005, Andi Vajda wrote:
>
>>
>> To get a symbol table, pass DEBUG=1 to make to create debug version
>> of the _PyLucene.so python extension: make DEBUG=1 all install
>>
>> Looking at your unit test now...
>>
>> Andi..
>>
>> On Mon, 3 Jan 2005, steve jenson wrote:
>>
>>> On Jan 3, 2005, at 10:29 PM, Andi Vajda wrote:
>>>> Thanks for your patch. I incorporated most of it and checked the
>>>> changes in.
>>>> The changes in Makefile were incorrect, the analogy with
>>>> QueryParser only goes so far since there is no need for patching
>>>> MultiFieldQueryParser.java
>>>> Also, you shouldn't need to rename the static parse methods (to be
>>>> verified).
>>>> The reason I renamed the non-static parse method on QueryParser is
>>>> because overloading of a mixture of static and non-static methods
>>>> doesn't seem to please swig.
>>> I see. I wasn't sure but I was getting a bus error regardless.
>>>> If you have code exercising MultiFieldQueryParser and would like to
>>>> submit a python unit test, that would be great !
>>> I have one and have attached it as a patch. Let me know if it
>>> doesn't meet your style requirements.
>>> I've svn update'd, rebuilt, and find that running my unit test gives
>>> me the same bus error. Please let me know how I can help. I don't
>>> have a symbol table when I poke around with GDB or else I would dig
>>> further. My experience debugging SWIG is limited.
>>> Thanks again,
>>> Steve
>> _______________________________________________
>> pylucene-dev mailing list
>> pylucene-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
>>
>
More information about the pylucene-dev
mailing list