Skip to content

Instantly share code, notes, and snippets.

@goooooouwa
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goooooouwa/20799c93504b34f3183c to your computer and use it in GitHub Desktop.
Save goooooouwa/20799c93504b34f3183c to your computer and use it in GitHub Desktop.
command to force creating index for Elasticsearch for Rails.
# under Rails console:
ModelName.__elasticsearch__.create_index! force: true
# (optional) import your model index to Elasticsearch
ModelName.import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment