From db5e947a23b6503ff29d9604354bed37b79f8bad Mon Sep 17 00:00:00 2001 From: tiffanyvu Date: Tue, 26 Nov 2024 14:04:01 -0800 Subject: [PATCH] must not --- lib/lambda/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lambda/search.ts b/lib/lambda/search.ts index 30fca5b6e..82eb4bccf 100644 --- a/lib/lambda/search.ts +++ b/lib/lambda/search.ts @@ -23,7 +23,7 @@ export const getSearchData = async (event: APIGatewayEvent) => { query.query = query?.query || {}; query.query.bool = query.query?.bool || {}; query.query.bool.must = query.query.bool?.must || []; - query.query.bool.must.push({ term: { deleted: false } }); + query.query.bool.must_not.push({ term: { deleted: true } }); const stateFilter = await getStateFilter(event); if (stateFilter) {