352
func GetDBIndexSearchAttributes(
353
override map[enumspb.IndexedValueType]int,
354
>
) *persistencespb.IndexSearchAttributes {
constants.go
355
>
csa := map[string]enumspb.IndexedValueType{}
356
>
for saType, defaultNumAttrs := range defaultNumDBCustomSearchAttributes {
357
>
numAttrs := defaultNumAttrs
358
>
if value, ok := override[saType]; ok {
359
numAttrs = value
360
}
362
>
csa[fmt.Sprintf("%s%02d", saType.String(), i+1)] = saType
363
>
}
364
}
365
>
return &persistencespb.IndexSearchAttributes{
constants.go
366
>
CustomSearchAttributes: csa,
367
>
}
368
}
369