www: wire up search to use async xap_helper
commit9987cc1cc687f3b2d03a78938773c4f0c5b64d98
authorEric Wong <e@80x24.org>
Wed, 24 Apr 2024 06:44:47 +0000 (24 06:44 +0000)
committerEric Wong <e@80x24.org>
Wed, 24 Apr 2024 21:34:47 +0000 (24 21:34 +0000)
tree89a65b32d436ae0b729ed583328aec7836d69b16
parent1682c7a2264b1083a9cd37151134667edbc31059
www: wire up search to use async xap_helper

The C++ version of xap_helper will allow more complex and
expensive queries.  Both the Perl and C++-only version will
allow offloading search into a separate process which can be
killed via ITIMER_REAL or RLIMIT_CPU in the face of overload.

The xap_helper `mset' command wrapper is simplified to
unconditionally return rank, percentage, and estimated matches
information.  This may slightly penalize mbox retrievals and
lei users, but perhaps that can be a different command entirely.
14 files changed:
MANIFEST
lib/PublicInbox/Isearch.pm
lib/PublicInbox/Mbox.pm
lib/PublicInbox/MboxGz.pm
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchView.pm
lib/PublicInbox/XapClient.pm
lib/PublicInbox/XapHelper.pm
lib/PublicInbox/XhcMset.pm [new file with mode: 0644]
lib/PublicInbox/XhcMsetIterator.pm [new file with mode: 0644]
lib/PublicInbox/xap_helper.h
lib/PublicInbox/xh_mset.h
t/cindex.t
t/xap_helper.t