Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

es 常用 API #10

Open
happypeter opened this issue Sep 29, 2014 · 3 comments
Open

es 常用 API #10

happypeter opened this issue Sep 29, 2014 · 3 comments

Comments

@happypeter
Copy link
Collaborator

  1. 列出所以 Index
http://happycasts.net:9200/_cat/indices?v
  1. 列出 index 中的所有 document
http://happycasts.net:9200/episodes/_search/?size=1000&pretty=1
@happypeter
Copy link
Collaborator Author

删除一个 index

curl -XDELETE "http://linode-esdemo:9200/movies"

@happypeter
Copy link
Collaborator Author

https://github.com/toptal/chewy

看起来不错。

@happypeter
Copy link
Collaborator Author

https://github.com/elasticsearch/elasticsearch-rails/blob/master/elasticsearch-rails/lib/elasticsearch/rails/tasks/import.rb#L83

bundle exec rake environment elasticsearch:import:all

一下子导入所有的 model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant