Skip to content

Commit 298b4ed

Browse files
committed
Merge pull request #490 from bgiromini/master
Added Size property to CompletionSuggestDescriptor
2 parents 3917543 + 418d691 commit 298b4ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Nest/DSL/Suggest/CompletionSuggestDescriptor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ public class CompletionSuggestDescriptor<T> : BaseSuggestDescriptor<T> where T :
1414
[JsonProperty(PropertyName = "fuzzy")]
1515
internal FuzzySuggestDescriptor<T> _Fuzzy { get; set; }
1616

17+
public CompletionSuggestDescriptor<T> Size(int size)
18+
{
19+
this._Size = size;
20+
return this;
21+
}
22+
1723
public CompletionSuggestDescriptor<T> Text(string text)
1824
{
1925
this._Text = text;

0 commit comments

Comments
 (0)