Elasticsearch - Rails
18 Jan 2018- models inside Elasticsearch are called documents
- documents in Elasticsearch are identified by model IDs
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