diff --git a/src/Nest/Resolvers/PathResolver.cs b/src/Nest/Resolvers/PathResolver.cs index 8fbcb0c8727..a216b311ee0 100644 --- a/src/Nest/Resolvers/PathResolver.cs +++ b/src/Nest/Resolvers/PathResolver.cs @@ -327,9 +327,9 @@ public string GetDeleteByQueryPathForDynamic(QueryPathDescriptor descri else if (descriptor._Indices != null || descriptor._AllIndices) //if set to empty array asume all indices = "_all"; else - indices = this._connectionSettings.DefaultIndex; - - string types = (descriptor._Types.HasAny()) ? string.Join(",", descriptor._Types) : null; + indices = this._connectionSettings.DefaultIndex; + + string types = (descriptor._Types.HasAny()) ? this.JoinTypes(descriptor._Types) : null; return this.SearchPathJoin(indices, types, descriptor.GetUrlParams(), suffix); } @@ -346,8 +346,8 @@ public string GetPathForTyped(QueryPathDescriptor descriptor, string suffi indices = this.Infer.IndexName(); var types = this.Infer.TypeName(); - if (descriptor._Types.HasAny()) - types = string.Join(",", descriptor._Types); + if (descriptor._Types.HasAny()) + types = this.JoinTypes(descriptor._Types); else if (descriptor._Types != null || descriptor._AllTypes) //if set to empty array assume all types = null;