/**
* creates a new index
*/
private void doNewIndex() {
NewIndexDialog nid = new NewIndexDialog(this, I18n.getString("new_index"), true);
nid.init();
nid.setVisible(true);
if (nid.getConfirmed()) {
//
String descD = nid.getDescFieldText();
String noUnd = Utils.replaceAll(" ", descD, "_");
boolean isWeb = nid.isWebSelected();
boolean isCdRomIndx = nid.isCDSelected();
String replace = nid.replaceFieldText();
String match = nid.matchFieldText();
int policy = nid.getPolicy();
try {
createNewIndex(new DocSearcherIndex(nid.startFieldText(), descD, nid.sbdSelected(), nid.getSDChoice(), FileUtils.addFolder(fEnv.getIndexDirectory(), noUnd), isWeb, match, replace, policy, nid.archiveFieldText()), isCdRomIndx);
// debug
if (isCdRomIndx) {
logger.info("doNewIndex() CD Idx.. replace is : " + replace + ", match: " + match);
}
}