elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::Extensions::ANSI::ResponseBody#to_ansi
Return a [colorized and formatted](http://en.wikipedia.org/wiki/ANSI_escape_code) representation of the Elasticsearch response for: * Search results (hits and highlights) * Facets (terms, statistical, histogram, date_histogram) * Analyze API output * Shard allocation
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--Extensions--ANSI--ResponseBody-to_ansi-for-pr
# Commit to gitgit add elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rbgit commit -m "better docs for Elasticsearch::Extensions::ANSI::ResponseBody#to_ansi"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--Extensions--ANSI--ResponseBody-to_ansi-for-pr
hub pull-request
# Celebrate!