创建索引 @return err 创建索引
()
| 598 | //创建索引 |
| 599 | //@return err 创建索引 |
| 600 | func (this *ElasticSearchClient) createIndex() (err error) { |
| 601 | api := this.Host + this.Index |
| 602 | err = utils.HandleResponse(this.put(api).Response()) |
| 603 | return |
| 604 | } |
| 605 | |
| 606 | //put请求 |
| 607 | func (this *ElasticSearchClient) put(api string) (req *httplib.BeegoHTTPRequest) { |
no test coverage detected