]> Sergey Matveev's repositories - public-inbox.git/commit
lei_xsearch: cross-(inbox|extindex) search
authorEric Wong <e@80x24.org>
Sun, 27 Dec 2020 20:02:51 +0000 (20:02 +0000)
committerEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:20:54 +0000 (13:20 +0000)
commit08de05443804120a2663aa3611c47c84a18e0c35
treeabfd80cfba197d6a38b0cfa52c17ca3adaf22ed9
parent12583f45f29f3acd6cd704df9a7e5aaff5acc3f7
lei_xsearch: cross-(inbox|extindex) search

While a single extindex combines multiple inboxes into a single
search index, extindex still requires up-front indexing on items
which can be searched.  XSearch has no on-disk footprint itself
and uses Xapian DBs of existing publicinbox and extindex
("extinbox") exclusively.

XSearch still suffers from the multi-shard Xapian scalability
problems which led to the creation of extindex, but I expect the
number of shards to remain relatively low.

I envision users hosting public-inbox instances on their
workstations will only have two extindex combined by this, one
read-only extindex for serving public archives, and one
read-write extindex managed by LeiStore for private mail.
MANIFEST
lib/PublicInbox/LeiSearch.pm
lib/PublicInbox/LeiXSearch.pm [new file with mode: 0644]
lib/PublicInbox/Search.pm
t/lei_xsearch.t [new file with mode: 0644]