Skip to content

Commit 6637bc7

Browse files
committed
Suggest by default was unbounded, now defaults to inferred index of T and require explicit .OnAllIndices()
1 parent 5260861 commit 6637bc7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Nest/DSL/SuggestDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Nest
1313
{
1414
[DescriptorFor("Suggest")]
1515
public partial class SuggestDescriptor<T> :
16-
IndicesOptionalPathDescriptor<SuggestDescriptor<T>, SuggestRequestParameters>
16+
IndicesOptionalExplicitAllPathDescriptor<SuggestDescriptor<T>, SuggestRequestParameters>
1717
, IPathInfo<SuggestRequestParameters>
1818
where T : class
1919
{

src/Tests/Nest.Tests.Integration/Core/Suggest/SuggestTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public void TestSuggest()
1717
var wrongCountry = country + "x";
1818

1919
var suggestResults = _client.Suggest<ElasticsearchProject>(s => s
20-
.Index<ElasticsearchProject>()
2120
.Term("mySuggest", m => m
2221
.SuggestMode(SuggestMode.Always)
2322
.Text(wrongCountry)

0 commit comments

Comments
 (0)