Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active May 20, 2016 16:51
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 jlsherrill/cceafcf643d489b1a10c2ed260b8126f to your computer and use it in GitHub Desktop.
Save jlsherrill/cceafcf643d489b1a10c2ed260b8126f to your computer and use it in GitHub Desktop.
service httpd stop
service foreman-tasks stop

curl -X GET 'http://localhost:9200/katello_katello::system/katello%2Fsystem/_mapping?pretty'
curl -X DELETE 'http://localhost:9200/katello_katello::system/'
curl -X GET 'http://localhost:9200/katello_katello::system/katello%2Fsystem/_mapping?pretty'

# foreman-rake console 
> Katello::System.create_elasticsearch_index
> quit

curl -X GET 'http://localhost:9200/katello_katello::system/katello%2Fsystem/_mapping?pretty'

service httpd start
service foreman-tasks start

foreman-rake katello:reindex_object MODEL=Katello::System

curl -X GET 'http://localhost:9200/katello_katello::system/katello%2Fsystem/_mapping?pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment