Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
update constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
ssvegaraju committed Feb 1, 2022
1 parent b0aa38a commit 28e65e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
6 changes: 3 additions & 3 deletions src/searchInclusions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -180,7 +180,7 @@ export const buildIncludeQuery = (
): Query => ({
resourceType,
queryRequest: {
size: MAX_NUM_ES_HITS,
size: MAX_INCLUSION_PARAM_RESULTS,
body: {
query: {
bool: {
Expand Down Expand Up @@ -209,7 +209,7 @@ export const buildRevIncludeQuery = (
return {
resourceType: sourceResource,
queryRequest: {
size: MAX_NUM_ES_HITS,
size: MAX_INCLUSION_PARAM_RESULTS,
body: {
query: {
bool: {
Expand Down

0 comments on commit 28e65e3

Please sign in to comment.