Hello,
we have a couple of test system that we recreate after a build. To use fts we have to manually call ftsManager.reindexAll() (e.g. via jmx) to create the fts-index. My idea is to do this when the application starts using a AppContext.Listener:
class FtsAppContextlistener implements AppContext.Listener {
void applicationStarted() {
authentication.begin();
try {
if (!doesIndexExist())){
ftsManager.reindexAll()
}
} finally {
authentication.end();
}
}
void doesIndexExist() {
// TODO
}
}
My problem is that I don’t know how to determine if the index does already exist (). I don’t want delete an exisiting index, but I would like to make sure the index is created after the application started.
Thanks for your help.
Yours,
Joerg