Sometimes subjects are excessively long and hit Xapian's 245-byte
term limit. We can still perform subject-only searches with
a probabilistic prefix.
my $subj = $smsg->subject;
if ($subj ne '') {
my $subj = $smsg->subject;
if ($subj ne '') {
- $doc->add_term(xpfx('subject') . $subj);
-
my $path = $self->subject_path($subj);
$doc->add_term(xpfx('path') . mid_compress($path));
}
my $path = $self->subject_path($subj);
$doc->add_term(xpfx('path') . mid_compress($path));
}