cgi_buffer is a group of libraries that may be used to improve performance of CGI scripts (and other content generation engines) in some circumstances by applying performance-enhancing HTTP mechanisms that are typically not supported by them. Currently, Perl, Python, and PHP4 are supported. The Python library may also be used as a wrapper around another CGI script.
Xapian is a search engine library, scalable to collections containing hundreds of millions of documents. It's written in C++ with bindings for Perl, Python, PHP, Java, Tcl, C#, Ruby, and Lua. It is a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to their own applications. It supports the Probabilistic Information Retrieval model and also a rich set of boolean query operators. Omega is a Web search application built upon the Xapian library. It can index a Web server's document tree (including HTML, PDF, OpenOffice, MS Word/Excel/Powerpoint/Works, WordPerfect, RTF, PS, etc.), or data exported from arbitrary sources (e.g. SQL databases).