Search in sources :

Example 1 with IndexDatabase

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");
}
Also used : DbDirectory(org.openntf.domino.DbDirectory) IndexDatabase(org.openntf.domino.big.IndexDatabase) Database(org.openntf.domino.Database) IndexDatabase(org.openntf.domino.big.IndexDatabase) Session(org.openntf.domino.Session)

Aggregations

Database (org.openntf.domino.Database)1 DbDirectory (org.openntf.domino.DbDirectory)1 Session (org.openntf.domino.Session)1 IndexDatabase (org.openntf.domino.big.IndexDatabase)1