Skip to content

Commit d9461d2

Browse files
committed
Attempting to reproduce #1515
1 parent 543660a commit d9461d2

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/Tests/Nest.Tests.Integration/Nest.Tests.Integration.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
<Compile Include="Reproduce\Reproduce1403Tests.cs" />
182182
<Compile Include="Reproduce\Reproduce1457Tests.cs" />
183183
<Compile Include="Reproduce\Reproduce1474Tests.cs" />
184+
<Compile Include="Reproduce\Reproduce1515Tests.cs" />
184185
<Compile Include="Reproduce\Reproduce769Tests.cs" />
185186
<Compile Include="Reproduce\Reproduce945Tests.cs" />
186187
<Compile Include="Reproduce\Reproduce953Tests.cs" />
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using Elasticsearch.Net;
2+
using Nest.Tests.MockData.Domain;
3+
using NUnit.Framework;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using FluentAssertions;
10+
11+
namespace Nest.Tests.Integration.Reproduce
12+
{
13+
[TestFixture]
14+
public class Reproduce1515Tests : IntegrationTests
15+
{
16+
[Test]
17+
public void Test()
18+
{
19+
var result = Client.Search<ElasticsearchProject>(s => s
20+
.SearchType(SearchType.Count)
21+
.Aggregations(ag => ag
22+
.Terms("countries", st => st
23+
.Field("country")
24+
.Size(10)
25+
.Aggregations(aa => aa
26+
.Terms("names", t => t
27+
.Field(f => f.Name)
28+
)
29+
)
30+
)
31+
)
32+
);
33+
34+
result.IsValid.Should().BeTrue();
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)