Fix to address lastN search limiting to only 100 hits. (#3456)
This commit is contained in:
parent
abea0389be
commit
0e9372775b
|
@ -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\": {" +
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue