Ferret is a high-performance, full-featured text search engine library written entirely in pure Ruby (with an optional C extension). It is a full port of the Java Lucene Project.
Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, and a web administration interface.