ModelAndView modelAndView = new ModelAndView();
Map<String, Object> result = new HashMap<String, Object>();
modelAndView.setViewName("/admin/indexFileManageMain");
CrescentCollectionHandler collectionHandler
= SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
List<String> collectionNames = new ArrayList<String>();
for (CrescentCollection crescentCollection : collectionHandler.getCrescentCollections().getCrescentCollections()) {
collectionNames.add(crescentCollection.getName());
}
String selectCollectionName = collectionNames.get(0);
CrescentCollection selectCollection = collectionHandler
.getCrescentCollections()
.getCrescentCollection(selectCollectionName);
IndexInfo indexInfo = indexFileManageService.getIndexInfo(selectCollection);