Indexer indexer = new Indexer();
for (int i = 0; i < docsPerSearcher ; i++) {
addTemplate.setAttribute("content", "content " + numServer);
addTemplate.setAttribute("documentId", String.valueOf(i) + "-" + String.valueOf(numServer));
addTemplate.setAttribute("group", "group"+String.valueOf(i/docsPerGroup));
indexer.index(addTemplate.toString());
addTemplate.reset();
}
indexers.add(indexer);
ISearcher baseSearcher = new CompositeSearcher();