I need to fetch a dynamicField (test_*) from solr engine. I am unable to get the output as it gives nullpointerexception.
Map<String,String> myMap = (Map<String,String>) result1.get(i).getFieldValue("test_*");
QueryResponse response1 = solr.query(query);
SolrDocumentList result1 = response1.getResults(); //result1 is the SolrDocumentList
for(int i=0; i < result1.size();i++){ //get set varaibles }