Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/Nest/DSL/IndicesStatsDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public partial class IndicesStatsDescriptor : IndicesOptionalPathDescriptor<Indi
IEnumerable<IndicesStatsMetric> IIndicesStatsRequest.Metrics { get; set; }

//<summary>A comma-separated list of fields for `completion` metric (supports wildcards)</summary>
public IndicesStatsDescriptor Types(params TypeNameMarker[] completion_fields)
public IndicesStatsDescriptor Types(params TypeNameMarker[] types)
{
Self.RequestParameters.AddQueryString("types", completion_fields);
Self.Types = types;
return this;
}

Expand Down
3 changes: 3 additions & 0 deletions src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ public void TestAllTheUrls()
Do("POST", "/_bulk", c => c.IndexMany(Enumerable.Range(0, 10).Select(i => new Doc { Id = i.ToString() })));
Do("POST", "/customindex/customtype/_bulk", c => c.IndexMany(Enumerable.Range(0, 10).Select(i => new Doc { Id = i.ToString() }), index: "customindex", type: "customtype"));
Do("GET", "/_stats", c => c.IndicesStats());
Do("GET", "/my_index/_stats", c => c.IndicesStats(s => s.Index("my_index")));
Do("GET", "/my_index/_stats?types=type1", c => c.IndicesStats(s => s.Index("my_index").Types(new TypeNameMarker[] { "type1" })));
Do("GET", "/my_index/_stats?types=type1%2Ctype2", c => c.IndicesStats(s => s.Index("my_index").Types(new TypeNameMarker[] { "type1", "type2" })));
Do("GET", "/mydefaultindex/_stats", c => c.IndicesStats(s => s.Index<Doc>()));
Do("PUT", "/mydefaultindex/doc/_mapping", c => c.Map<Doc>(m => m.MapFromAttributes()));
Do("PUT", "/mycustomindex/doc/_mapping", c => c.Map<Doc>(m => m.Index("mycustomindex")));
Expand Down