Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add HAccount and HTextFlow to explicit re-index list
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed May 12, 2011
1 parent 54fdde4 commit 9891036
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -22,7 +22,9 @@
import org.jboss.seam.deployment.StandardDeploymentStrategy;
import org.jboss.seam.faces.FacesMessages;
import org.jboss.seam.log.Log;
import org.zanata.model.HAccount;
import org.zanata.model.HIterationProject;
import org.zanata.model.HTextFlow;

@Name("adminAction")
@Scope(ScopeType.APPLICATION)
Expand All @@ -44,8 +46,11 @@ public class AdminActionBean
@Create
public void create()
{
indexables.addAll(StandardDeploymentStrategy.instance().getAnnotatedClasses().get(Indexed.class.getName()));
// TODO: find a version of this that works:
// indexables.addAll(StandardDeploymentStrategy.instance().getAnnotatedClasses().get(Indexed.class.getName()));
indexables.add(HIterationProject.class);
indexables.add(HAccount.class);
indexables.add(HTextFlow.class);
}

/*
Expand All @@ -60,7 +65,6 @@ public void reindexDatabase()
// reindex all @Indexed entities
for (Class<?> clazz : indexables)
{
log.info("Reindexing class " + clazz.getName());
reindex(clazz);
}

Expand Down

0 comments on commit 9891036

Please sign in to comment.