Fix to address lastN search limiting to only 100 hits. (#3456)

This commit is contained in:
Jaison Baskaran 2022-03-07 15:04:54 -07:00 committed by GitHub
parent abea0389be
commit 0e9372775b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public class LastNAggregation {
"{" +
" \"terms\":{" +
" \"field\":\"" + SP_CODE_TOKEN_CODE_AND_SYSTEM + "\"," +
" \"size\":100," +
" \"size\":10000," +
" \"min_doc_count\":1" +
" }," +
" \"aggs\":{" +
@ -87,7 +87,7 @@ public class LastNAggregation {
"{" +
" \"terms\": {" +
" \"field\": \"" + SP_SUBJECT + "\"," +
" \"size\": 100," +
" \"size\": 10000," +
" \"min_doc_count\": 1" +
" }," +
" \"aggs\": {" +

View File

@ -136,7 +136,7 @@ public class FhirResourceDaoR4SearchLastNIT extends BaseR4SearchLastN {
List<String> expectedObservationList = observationIds.stream()
.map(id -> id.toUnqualifiedVersionless().getValue()).collect(Collectors.toList());
assertThat(results, is(expectedObservationList));
assertEquals(results, expectedObservationList);
}
}