[Xapian-discuss] Perl version of sortable_serialize missing?
Jim Lynch
jim at fayettedigital.com
Mon Jan 23 13:30:37 GMT 2012
On 01/20/2012 08:21 PM, Olly Betts wrote:
> On Fri, Jan 20, 2012 at 06:02:13AM -0500, Jim Lynch wrote:
>> I attempted to use the sortable_serialize function from perl, however
>> doesn't seem to exist. The only occurrence of the string "sortable" in
>> the /usr/local/perl/5.10.1/Search/ tree is in the pod in Xapian.pm.
> It's wrapped entirely in XS, so the wrapper is in the compiled Xapian.so
> shared object.
>
>> What am I doing wrong?
>>
>> use Search::Xapian;
>> ...
>> $doc->add_value(4,sortable_serialize($recdate));
> It isn't exported into the global namespace, so you need to explicitly
> qualify its name:
>
> $doc->add_value(4,Search::Xapian::sortable_serialize($recdate));
>
> Cheers,
> Olly
>
For the record, that doesn't work either on my system. It's moot, since
I wrote my own serialize function.
423: my $serDate = Search::Xapian::sortable_serialize($date);
DB<2>
Can't locate auto/Search/Xapian/sortable_se.al in @INC (@INC contains:
/etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /data1/mail//Mail/ngenindex.pl line 423
at /usr/share/perl/5.10/AutoLoader.pm line 47
AutoLoader::AUTOLOAD(925759433) called at
/data1/mail//Mail/ngenindex.pl line 423
Unless you can't assign the results to a variable.
Thanks,
Jim.
More information about the Xapian-discuss
mailing list