private static Map<String, SearchDefinition> toSearchDefinitions(IndexInfoConfig c) {
        Map<String, SearchDefinition> searchDefinitions = new HashMap<>();

        for (IndexInfoConfig.Indexinfo info : c.indexinfo()) {
            SearchDefinition sd = new SearchDefinition(info.name());
            for (IndexInfoConfig.Indexinfo.Command command : info.command()) {
                sd.addCommand(command.indexname(), command.command());
            }
            searchDefinitions.put(info.name(), sd);
        }

        for (IndexInfoConfig.Indexinfo info : c.indexinfo()) {
            SearchDefinition sd = searchDefinitions.get(info.name());
            for (IndexInfoConfig.Indexinfo.Alias alias : info.alias()) {
                String aliasString = alias.alias();
                String indexString = alias.indexname();

                sd.addAlias(aliasString, indexString);
            }
        }
        return searchDefinitions;
    }
Create an index model for a single search definition
container-search/src/main/java/com/yahoo/prelude/IndexModel.java