Here is the code to make the Xapian search indexes optional.
The first patch makes the term position database optional.
The second patch makes anything in Xapian optional.
Finally the last patch adds a config option.
At the end of the day it all looks simple and straight forward so I feel
good about the code. At the very least it looks like a good starting
point.
What this code does not do is make the Xapian code modules optional. As
that is more involved, and there is not much reward for that. With a
little cleverness in moving around code that is probably possible in a
follow change.
Eric W. Biederman (3):
SearchIdx.pm: Make indexing search positions optional
SearchIdx: Add the mechanism for making all Xapian indexing optional
SearchIdx: Allow the amount of indexing be configured
lib/PublicInbox/Config.pm | 2 +-
lib/PublicInbox/SearchIdx.pm | 255 +++++++++++++++++++++++--------------------
2 files changed, 137 insertions(+), 120 deletions(-)
--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/