From 28e65e31cf58938fd9ae8606015a9c8c424a9663 Mon Sep 17 00:00:00 2001 From: ssvegaraju Date: Tue, 1 Feb 2022 02:02:56 +0000 Subject: [PATCH] update constant name --- src/constants.ts | 2 +- src/searchInclusions.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index fc3f46e..36c8ccc 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -27,4 +27,4 @@ export const MAX_ES_WINDOW_SIZE: number = 10000; export const MAX_CHAINED_PARAMS_RESULT: number = 100; -export const MAX_NUM_ES_HITS: number = 1000; +export const MAX_INCLUSION_PARAM_RESULTS: number = 1000; diff --git a/src/searchInclusions.ts b/src/searchInclusions.ts index 06f7e01..2951f36 100644 --- a/src/searchInclusions.ts +++ b/src/searchInclusions.ts @@ -9,7 +9,7 @@ import { FHIRSearchParametersRegistry } from './FHIRSearchParametersRegistry'; import getComponentLogger from './loggerBuilder'; import { Query } from './elasticSearchService'; import { getAllValuesForFHIRPath } from './getAllValuesForFHIRPath'; -import { MAX_NUM_ES_HITS } from './constants'; +import { MAX_INCLUSION_PARAM_RESULTS } from './constants'; const logger = getComponentLogger(); @@ -180,7 +180,7 @@ export const buildIncludeQuery = ( ): Query => ({ resourceType, queryRequest: { - size: MAX_NUM_ES_HITS, + size: MAX_INCLUSION_PARAM_RESULTS, body: { query: { bool: { @@ -209,7 +209,7 @@ export const buildRevIncludeQuery = ( return { resourceType: sourceResource, queryRequest: { - size: MAX_NUM_ES_HITS, + size: MAX_INCLUSION_PARAM_RESULTS, body: { query: { bool: {