elasticsearch-rails

https://github.com/elastic/elasticsearch-rails

Ruby

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

Searchable::Indexing#as_indexed_json

Customize the JSON serialization for Elasticsearch

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-rails.git

cd elasticsearch-rails

open elasticsearch-model/examples/activerecord_associations.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Searchable--Indexing-as_indexed_json-for-pr


# Commit to git

git add elasticsearch-model/examples/activerecord_associations.rbgit commit -m "better docs for Searchable::Indexing#as_indexed_json"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Searchable--Indexing-as_indexed_json-for-pr

hub pull-request


# Celebrate!