重新创建索引:
Product.__elasticsearch__.create_index! force: true
创建、更新、删除索引:
Product.first.__elasticsearch__.index_document
Product.first.__elasticsearch__.update_document
Product.first.__elasticsearch__.delete_document
elasticsearch-rails elasticsearch-model的使用
猜你喜欢
转载自zhangcaiyanbeyond.iteye.com/blog/2365991
今日推荐
周排行