config.getManager().index(toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); } else { IndexBatch batch = batches.get(toIndex.second().getIndexID()); if (batch == null) { batch = new IndexBatch(toIndex.second().getIndexID()); batches.put(batch.getIndex(), batch); config.getManager().indexBatch(batch, toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); config.getManager().index(toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null); } else { IndexBatch batch = batches.get(toIndex.second().getIndexID()); if (batch == null) { batch = new IndexBatch(toIndex.second().getIndexID()); batches.put(batch.getIndex(), batch); config.getManager().indexBatch(batch, toIndex.first(), LocalFileContentType.SINGLETON, toIndex.second(), req, Priority.HIGH, null);