use of org.openntf.domino.big.IndexDatabase in project org.openntf.domino by OpenNTF.
the class DominoIndexDbTest method run.
@Override
public void run() {
Session session = Factory.getSession(SessionType.CURRENT);
session.setConvertMIME(false);
session.setFixEnable(Fixes.APPEND_ITEM_VALUE, true);
session.setFixEnable(Fixes.FORCE_JAVA_DATES, true);
session.setFixEnable(Fixes.CREATE_DB, true);
DbDirectory dir = session.getDbDirectory("");
Database indexDb = dir.createDatabase("index.nsf", true);
// Database indexDb = session.getDatabase("", "index.nsf", true);
// indexDb.open();
IndexDatabase index = new org.openntf.domino.big.impl.IndexDatabase(indexDb);
index.setCaseSensitive(true);
index.scanServer(session, "");
System.out.println("Complete");
}
Aggregations