* @param optimize
* Indicates whether to optimize the indexes.
*/
public void setOptions(boolean purge, boolean reindex, boolean optimize) {
for (Class<?> c : indexables) {
ReindexClassOptions classOptions;
if (indexingOptions.containsKey(c)) {
classOptions = indexingOptions.get(c);
} else {
classOptions = new ReindexClassOptions(c);
indexingOptions.put(c, classOptions);
}
classOptions.setPurge(purge);
classOptions.setReindex(reindex);
classOptions.setOptimize(optimize);
}
}