use PublicInbox::Hval qw(ascii_html prurl mid_href);
use PublicInbox::WwwStream qw(html_oneshot);
use PublicInbox::Smsg;
-use PublicInbox::Search qw(mdocid);
our $MIN_PARTIAL_LEN = 16;
# TODO: user-configurable
}
}
- my $n = $srch->{nshard} // 1;
foreach my $m (@try) {
# If Xapian can't handle the wildcard since it
# has too many results. $@ can be
# Search::Xapian::QueryParserError or even:
# "something terrible happened at ../Search/Xapian/Enquire.pm"
- my $mset = eval { $srch->query($m, $opt) } or next;
+ my $mset = eval { $srch->mset($m, $opt) } or next;
my @mids = map {
$_->{mid}
- } @{$ibx->over->get_all(map { mdocid($n, $_) } $mset->items)};
+ } @{$srch->mset_to_smsg($ibx, $mset)};
return \@mids if scalar(@mids);
}
}