Last active
August 29, 2015 14:02
-
-
Save goooooouwa/20799c93504b34f3183c to your computer and use it in GitHub Desktop.
command to force creating index for Elasticsearch for Rails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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