MCPcopy Index your code
hub / github.com/TruthHun/BookStack / createIndex

Method createIndex

models/elasticsearch.go:600–604  ·  view source on GitHub ↗

创建索引 @return err 创建索引

()

Source from the content-addressed store, hash-verified

598//创建索引
599//@return err 创建索引
600func (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请求
607func (this *ElasticSearchClient) put(api string) (req *httplib.BeegoHTTPRequest) {

Callers 1

InitMethod · 0.95

Calls 3

putMethod · 0.95
HandleResponseFunction · 0.92
ResponseMethod · 0.80

Tested by

no test coverage detected