@@ -0,0 +1,1429 @@
+package org.fedorahosted.flies.core.action;%0A%0Aimport java.util.List;%0A%0Aimport javax.persistence.EntityManager;%0A%0Aimport org.fedorahosted.flies.core.model.Community;%0Aimport org.fedorahosted.flies.core.model.Project;%0Aimport org.hibernate.search.jpa.Search; %0Aimport org.hibernate.search.jpa.FullTextEntityManager;%0Aimport org.jboss.seam.ScopeType;%0Aimport org.jboss.seam.annotations.In;%0Aimport org.jboss.seam.annotations.Name;%0Aimport org.jboss.seam.annotations.Scope;%0A%0A@Name(%22searchadmin%22)%0A@Scope(ScopeType.EVENT)%0Apublic class SearchAdmin %7B%0A    @In%0A%09EntityManager entityManager;%0A%0A    public void resetProjectIndex() throws Exception %7B%0A    %09FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(entityManager); %0A%0A    %09List%3CProject%3E projects = entityManager.createQuery(%22select project from Project as project%22).getResultList(); %0A%09 %09            for (Project project : projects) %7B %0A%09                fullTextEntityManager.index(project); %0A%09 %09            %7D  %0A%0A        %0A    %7D%0A    %0A    public void resetCommunityIndex() throws Exception %7B%0A    %09FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(entityManager); %0A%0A    %09List%3CCommunity%3E communities = entityManager.createQuery(%22select community from Community as community%22).getResultList(); %0A%09 %09            for (Community community : communities) %7B %0A%09                fullTextEntityManager.index(community); %0A%09 %09            %7D  %0A%0A        %0A    %7D%0A%7D%0A

Add re-index component for Project, Community.