[#177] metabase: Add index by object ID

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-20 10:43:41 +03:00 committed by Alex Vanin
parent dbf6c9efef
commit ffeea2c003
4 changed files with 24 additions and 3 deletions

View file

@ -124,6 +124,10 @@ func objectIndices(obj *object.Object, parent bool) []bucketItem {
key: v2object.FilterHeaderParent,
val: obj.ParentID().String(),
},
bucketItem{
key: v2object.FilterHeaderObjectID,
val: obj.ID().String(),
},
// TODO: add remaining fields after neofs-api#72
)