[pylucene-dev] MoreLikeThis & back to crashing on Mac OS X 10.4.8
Andi Vajda
vajda at osafoundation.org
Wed Feb 14 16:40:03 PST 2007
On Wed, 14 Feb 2007, Bill Janssen wrote:
> Looks like the problem is that I call repr() on the query returned
> from MoreLikeThis. Once I take that out, things are working again.
>
>> if len(repr(query).split()) < 3:
>
> What I'm trying to do here is perform an assessment of the complexity
> of the query, and reject it if it's too simple.
Looking at the repr code, I see that it's lacking some type checking.
I fixed that, not knowing if that was the actual cause of your crash or not,
in rev 319.
Andi..
More information about the pylucene-dev
mailing list