Xapian
"Xapian is an Open Source Probabilistic Information Retrieval library, released under the GPL. It's written in C , and bindings are under development to allow use from other languages (Perl, Python, and PHP are working; Java will be available shortly).
Xapian is designed to be a highly adaptable toolkit to allow developers to easily add advanced indexing and search facilities to their own applications."