The Elasticsearch::DSL library provides a Ruby API for the Elasticsearch Query DSL.