diff --git a/src/main/java/mil/dds/anet/search/AbstractEventSearcher.java b/src/main/java/mil/dds/anet/search/AbstractEventSearcher.java index e81e2543f9..9c4546f585 100644 --- a/src/main/java/mil/dds/anet/search/AbstractEventSearcher.java +++ b/src/main/java/mil/dds/anet/search/AbstractEventSearcher.java @@ -34,6 +34,11 @@ protected void buildQuery(EventSearchQuery query) { qb.addFromClause("\"events\""); qb.addEnumEqualsClause("status", "events.status", query.getStatus()); + if (query.getEmailNetwork() != null) { + // Should never match + qb.addWhereClause("FALSE"); + } + if (hasTextQuery(query)) { addTextQuery(query); } diff --git a/src/main/java/mil/dds/anet/search/AbstractEventSeriesSearcher.java b/src/main/java/mil/dds/anet/search/AbstractEventSeriesSearcher.java index 8bdd18d159..5ca58f46fe 100644 --- a/src/main/java/mil/dds/anet/search/AbstractEventSeriesSearcher.java +++ b/src/main/java/mil/dds/anet/search/AbstractEventSeriesSearcher.java @@ -32,6 +32,11 @@ protected void buildQuery(EventSeriesSearchQuery query) { qb.addFromClause("\"eventSeries\""); qb.addEnumEqualsClause("status", "\"eventSeries\".status", query.getStatus()); + if (query.getEmailNetwork() != null) { + // Should never match + qb.addWhereClause("FALSE"); + } + if (hasTextQuery(query)) { addTextQuery(query); }