[Xapian-discuss] Perl version of sortable_serialize missing?
Olly Betts
olly at survex.com
Sat Jan 21 01:21:36 GMT 2012
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
More information about the Xapian-discuss
mailing list