use FieldTypeSet

This commit is contained in:
Yuce Tekol 2018-10-01 17:55:56 +03:00
parent 066c3a4853
commit fc6fc82f67
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

2
api.go
View file

@ -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"))
}