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
11 changes: 11 additions & 0 deletions src/Nest/DSL/Facets/TermsStatsFacetDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public interface ITermsStatsFacetRequest : IFacetRequest
[JsonProperty(PropertyName = "size")]
int? Size { get; set; }

[JsonProperty(PropertyName = "shard_size")]
int? ShardSize { get; set; }

[JsonProperty(PropertyName = "params")]
[JsonConverter(typeof (DictionaryKeysAreNotPropertyNamesJsonConverter))]
Dictionary<string, object> Params { get; set; }
Expand All @@ -48,6 +51,7 @@ public class TermsStatsFacetRequest : FacetRequest, ITermsStatsFacetRequest
public TermsStatsOrder? Order { get; set; }
public string Lang { get; set; }
public int? Size { get; set; }
public int? ShardSize { get; set; }
public Dictionary<string, object> Params { get; set; }
}

Expand All @@ -69,6 +73,8 @@ public class TermsStatsFacetDescriptor<T> : BaseFacetDescriptor<TermsStatsFacetD

int? ITermsStatsFacetRequest.Size { get; set; }

int? ITermsStatsFacetRequest.ShardSize { get; set; }

Dictionary<string, object> ITermsStatsFacetRequest.Params { get; set; }

public TermsStatsFacetDescriptor<T> KeyField(Expression<Func<T, object>> objectPath)
Expand Down Expand Up @@ -113,6 +119,11 @@ public TermsStatsFacetDescriptor<T> Language(string language)
Self.Lang = language;
return this;
}
public TermsStatsFacetDescriptor<T> ShardSize(int shardSize)
{
Self.ShardSize = shardSize;
return this;
}
public TermsStatsFacetDescriptor<T> Size(int size)
{
size.ThrowIfNull("size");
Expand Down