fixed issue from merge
This commit is contained in:
parent
a241983c9d
commit
2d2e9e0621
|
@ -215,7 +215,7 @@ public class DiversifiedSamplerIT extends ESIntegTestCase {
|
|||
.execute().actionGet();
|
||||
assertSearchResponse(response);
|
||||
Sampler sample = response.getAggregations().get("sample");
|
||||
assertThat(sample.getDocCount(), greaterThan(0l));
|
||||
assertThat(sample.getDocCount(), greaterThan(0L));
|
||||
Terms authors = sample.getAggregations().get("authors");
|
||||
assertThat(authors.getBuckets().size(), greaterThan(0));
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ public class DiversifiedSamplerIT extends ESIntegTestCase {
|
|||
.setQuery(new TermQueryBuilder("genre", "fantasy")).setFrom(0).setSize(60).addAggregation(sampleAgg).execute().actionGet();
|
||||
assertSearchResponse(response);
|
||||
Sampler sample = response.getAggregations().get("sample");
|
||||
assertThat(sample.getDocCount(), equalTo(0l));
|
||||
assertThat(sample.getDocCount(), equalTo(0L));
|
||||
Terms authors = sample.getAggregations().get("authors");
|
||||
assertNull(authors);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue