From fc6fc82f6774bb5ba83da64d5909606d6c87e7b3 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Mon, 1 Oct 2018 17:55:56 +0300 Subject: [PATCH] use FieldTypeSet --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) }