How to get dynamicField from solr in java which is of map datatype in cassandra database

41 Views Asked by At

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 }
0

There are 0 best solutions below