lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Re: [lucy-user] Serialization error when inheriting from Lucy::Analysis::Normalizer
Date Mon, 05 May 2014 16:16:54 GMT

On Mon, May 5, 2014 at 7:58 AM, Knut Arne Bjørndal
<> wrote:

> Minimal test case:

Thanks for providing the test case!  It allowed me to isolated the problem
right away -- here's a quick fix:

> So it looks like the serializer doesn't correctly handle boolean values
> when called from perl?

Round-trip serialization of booleans is tricky for languages like Perl which
don't provide a dedicated boolean type.  We can probably make some general
improvements on that front, but in any case it's better for client code like
Normalizer#Load to be forgiving and call To_Bool() on whatever object is
present rather than insist on a specific boolean type.

Marvin Humphrey

View raw message