I am trying to inspect a solr schema using LukeRequest. I am able to browse the schema using solr admin schema browser. However when I try to retrieve it using the following piece of code it returns an empty field info map
String url = "<host>:<port>/solr/";
SolrServer server = new HttpSolrServer(url);
LukeRequest luke = new LukeRequest();
luke.setShowSchema(false);
final LukeResponse process = luke.process(server);
final Map<String, FieldInfo> fieldInfo = process.getFieldInfo();
for(String key: fieldInfo.keySet()){
FieldInfo info = fieldInfo.get(key);
System.out.println(key + ":" + info.getType());
}
(the fieldInfo variable gets an empty map) I am using solr 3.6