elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::API::Actions#search
Return documents matching a query, as well as aggregations (facets), highlighted snippets, suggestions, etc. The search API is used to query one or more indices either using simple [query string queries](http://www.elasticsearch.org/guide/reference/api/search/uri-request/) as the `:q` argument , or by passing the [full request definition](http://www.elasticsearch.org/guide/reference/api/search/request-body/) in the [Query DSL](http://www.elasticsearch.org/guide/reference/query-dsl/) as the `:body` argument.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-api/lib/elasticsearch/api/actions/search.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--API--Actions-search-for-pr
# Commit to gitgit add elasticsearch-api/lib/elasticsearch/api/actions/search.rbgit commit -m "better docs for Elasticsearch::API::Actions#search"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--API--Actions-search-for-pr
hub pull-request
# Celebrate!