Skip to content

Commit 418d691

Browse files
committed
Added Size property to CompletionSuggestDescriptor
This will allow users to now specific the size of the completion results, which defaults to 5.
1 parent b9fa4e1 commit 418d691

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)