diff --git a/api.go b/api.go index f2ba86279..910bc582f 100644 --- a/api.go +++ b/api.go @@ -327,7 +327,7 @@ func (api *API) ImportRoaring(ctx context.Context, indexName, fieldName string, } // only set fields are supported - if field.Type() != "set" { + if field.Type() != FieldTypeSet { return NewBadRequestError(errors.New("roaring import is only supported for set fields")) }