The annotated source [https://gist.github.com/1025498] provides an example for using the ElasticSearch's percolator feature in a Ruby application.
“Reversed” or “Real Time” Search with ElasticSearch and Ruby
karmi.github.com