From 07538322208257974d0686753d27ee976ee1f7f1 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 19 Aug 2018 16:17:14 -0700 Subject: Restrict results to community groups --- src/main/java/com/p4square/groupsindexer/SyncGroups.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/com/p4square/groupsindexer/SyncGroups.java') diff --git a/src/main/java/com/p4square/groupsindexer/SyncGroups.java b/src/main/java/com/p4square/groupsindexer/SyncGroups.java index f81cb98..acdf0bd 100644 --- a/src/main/java/com/p4square/groupsindexer/SyncGroups.java +++ b/src/main/java/com/p4square/groupsindexer/SyncGroups.java @@ -96,6 +96,11 @@ public class SyncGroups implements RequestHandler { continue; } + if (!profile.getGroupType().getName().equals("Community")) { + LOG.info("Skipping non-Community group " + profile.getName()); + continue; + } + // Transform GroupProfile to Search Document. final GroupSearchDocument document = ADAPTER.apply(profile); -- cgit v1.2.3