Elasticsearch - Rails


  1. https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-model

import all ProductEvent models into Elasticsearch (previously imported models will be replaced):

$ ProductEvent.__elasticsearch__.import

sync specific model (POST request will be issued if model has been indexed, PUT request otherwise):

$ ProductEvent.last.__elasticsearch__.index_document