diff --git a/hapi-fhir-jpaserver-elastic-test-utilities/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchWithElasticSearchIT.java b/hapi-fhir-jpaserver-elastic-test-utilities/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchWithElasticSearchIT.java index dedf7c750dc5..9dde6de60861 100644 --- a/hapi-fhir-jpaserver-elastic-test-utilities/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchWithElasticSearchIT.java +++ b/hapi-fhir-jpaserver-elastic-test-utilities/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchWithElasticSearchIT.java @@ -928,7 +928,10 @@ public void testDirectPathWholeResourceNotIndexedWorks() { // set it after creating resource, so search doesn't find it in the index myStorageSettings.setStoreResourceInHSearchIndex(true); - List result = searchForFastResources("Observation?code=theCode&_count=10&_total=accurate"); + myCaptureQueriesListener.clear(); + + List result = searchForFastResources("Observation?code=theCode"); + myCaptureQueriesListener.logSelectQueriesForCurrentThread(); assertThat(result).hasSize(1); assertEquals(((Observation) result.get(0)).getIdElement().getIdPart(), id1.getIdPart());