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

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-Elasticsearch--Extensions--ANSI--ResponseBody-to_ansi-for-pr


# Commit to git

git add elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rbgit commit -m "better docs for Elasticsearch::Extensions::ANSI::ResponseBody#to_ansi"


# Open pull request

gem 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!