// Load element scores
if(scoreDir != null && scoreDir.exists()) {
ElementScoreSetter<TypeaheadElement> handler = new ElementScoreSetter<TypeaheadElement>(elementStore);
ElementScoreScanner scan = new ElementScoreScanner(scoreDir);
scan.scan(handler);
}
ConnectionsCollector connectionsCollector = new ConnectionsCollector(config.getConnectionsStoreCapacity());
connectionsCollector.collect(elementStore, config.getMaxKeyLength());
connectionsCollector.store(connectionsStore);