Skip to content

Commit 7011865

Browse files
committed
fix(fundings): Improve / Correct ES query /2
1 parent 95a6aee commit 7011865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • client/src/boards/financements-par-aap

client/src/boards/financements-par-aap/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const getEsQuery = ({ regions, structures, yearMax = years[years.length - 1], ye
5959
const regionsNotNull = regions?.filter((region) => region !== null);
6060
if (regionsNotNull?.length ?? 0 > 0) {
6161
query.query.bool.filter.push({ terms: { "participant_typologie_1.keyword": ["Ecoles, instituts et assimilés", "Organismes de recherche", "Structures de recherche", "Universités et assimilés"] } });
62-
query.query.bool.filter.push({ terms: { "participant_region_with_labs.keyword": regionsNotNull } });
62+
query.query.bool.filter.push({ terms: { "participant_region.keyword": regionsNotNull } });
6363
};
6464
return query;
6565
};

0 commit comments

Comments
 (0)