Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Nest/Resolvers/PathResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ public string GetDeleteByQueryPathForDynamic(QueryPathDescriptor<dynamic> 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);
}
Expand All @@ -346,8 +346,8 @@ public string GetPathForTyped<T>(QueryPathDescriptor<T> descriptor, string suffi
indices = this.Infer.IndexName<T>();

var types = this.Infer.TypeName<T>();
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;

Expand Down