I think everyone of XI'ers first or after meet the problem of searching something in a message...throughout some thousands of messages!!!
SAP release the TREX-indexing functionality...but how to manage this problem without PORTAL or TREX-Engine installed?
Well, this simple abap code could be a good starting point to develop your self-made searching engine; it's very simple (I need something like this) but useful in many environent I think.
Actually is tested on SAP XI 3.0 patch 14.
.