Skip to content

Commit

Permalink
must not
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyvu committed Nov 26, 2024
1 parent 8b1e39e commit db5e947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lambda/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit db5e947

Please sign in to comment.