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

Method existIndex

models/elasticsearch.go:592–596  ·  view source on GitHub ↗

查询索引是否存在 @return err nil表示索引存在,否则表示不存在

()

Source from the content-addressed store, hash-verified

590//查询索引是否存在
591//@return err nil表示索引存在,否则表示不存在
592func (this *ElasticSearchClient) existIndex() (err error) {
593 api := this.Host + this.Index
594 err = utils.HandleResponse(this.get(api).Response())
595 return
596}
597
598//创建索引
599//@return err 创建索引

Callers 1

InitMethod · 0.95

Calls 3

getMethod · 0.95
HandleResponseFunction · 0.92
ResponseMethod · 0.80

Tested by

no test coverage detected