added missing index.go changes

This commit is contained in:
Yuce Tekol 2019-03-01 15:02:49 +03:00
parent 767062ab7c
commit d8ba398dd8
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -453,9 +453,10 @@ func (p indexSlice) Less(i, j int) bool { return p[i].Name() < p[j].Name() }
// IndexInfo represents schema information for an index.
type IndexInfo struct {
Name string `json:"name"`
Options IndexOptions `json:"options"`
Fields []*FieldInfo `json:"fields"`
Name string `json:"name"`
Options IndexOptions `json:"options"`
Fields []*FieldInfo `json:"fields"`
ShardWidth uint64 `json:"shardWidth"`
}
type indexInfoSlice []*IndexInfo