TopicsIndex topicsIndex =
(TopicsIndex) tm.getHelperObject(org.tmapi.index.core.TopicsIndex.class);
if (topicsIndex.isOpen() == false) {
// open index
topicsIndex.open();
}
if (topicsIndex.getFlags().isAutoUpdated() == false) {
// regenerate index
topicsIndex.reindex();
}
/* DO INDEX OPERATION */
// free index
topicsIndex.close();Using TMAPI Indexes
Create an Index to use for more operations.
