SWIG Xapian.pm is stricter about types and won't automatically
stringify integer scalars whereas the old XS Search::Xapian
supported more Perl-like behavior. So we'll stringify manually
to appease the SWIG binding.
Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Tested-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
$self->{-opt}->{'split-at'} = $cur;
} else {
$cur ||= $new // $SHARD_SPLIT_AT;
- $xdb->set_metadata('split-at', $cur);
+ $xdb->set_metadata('split-at', "$cur");
$self->{-do_join_splits} = 1;
}
$self->{-doc_max} = $xdb->get_lastdocid || $cur;