diff --git a/endee.go b/endee.go index 6b40529..4271e6a 100644 --- a/endee.go +++ b/endee.go @@ -66,6 +66,7 @@ type IndexInfo struct { CreatedAt int64 `json:"created_at"` Precision string `json:"precision,omitempty"` M int `json:"M,omitempty"` + EfCon int `json:"ef_con,omitempty"` SparseDim int `json:"sparse_dim,omitempty"` } @@ -441,6 +442,7 @@ type GetIndexResponse struct { Dimension int `json:"dimension"` Precision string `json:"precision"` M int `json:"M"` + EfCon int `json:"ef_con"` CreatedAt int64 `json:"created_at"` Name string `json:"name"` SparseDim int `json:"sparse_dim"` @@ -482,6 +484,7 @@ func (nd *Endee) GetIndexWithContext(ctx context.Context, name string) (*Index, SparseDim: data.SparseDim, Precision: data.Precision, M: data.M, + EfCon: data.EfCon, } // Create and return Index object diff --git a/index.go b/index.go index 62a41a4..3faf567 100644 --- a/index.go +++ b/index.go @@ -40,6 +40,7 @@ type IndexParams struct { SparseDim int `json:"sparse_dim"` Precision string `json:"precision"` M int `json:"M"` + EfCon int `json:"ef_con"` } // VectorItem represents a vector with metadata for upserting