A while ago Earl asked if we'd be willing to share the code driving the
search feature for The Mail Archive (mail-archive.com). I've gone ahead and
put the relevant source code online. That's the good news.
The bad news is you won't be able to just grab this code and add search to a
mhonarc archive. There is no separation of reusable portions from code that
is hopelessly specific to The Mail Archive. At best, it's an example for
experienced Python programmers showing one possible way that mhonarc the
PyLucene search library can interact.