WIP on DeleteShard in API, drilling down to lower levels of FB

This commit is contained in:
David Kagan 2023-03-30 16:57:07 -04:00
parent 4bff8b23cb
commit 01f069aec7

4
api.go
View file

@ -773,6 +773,10 @@ func (api *API) DeleteShard(_ context.Context, indexName string, shardID uint64)
}
// Get views of shards
// --> maybe can use InMemSharder() from disco?
sharder := disco.NewInMemSharder()
ctx := context.Background()
// sharder.Shards(ctx, idx,) <-- need a field name
// ??? sv := idx.fieldView2shard().removeField()
// ??? maybe just use the api.DeleteField() method?