You can have a dynamicField in your schema called "entity_*" and map it to the your corresponding data structure in this way: @Field ("entity_*") Map<String,String> entity; The key would be your fieldName (other than the "entity_").
SOLR-1129 <https://issues.apache.org/jira/browse/SOLR-1129> will give you more insights. Cheers Avlesh On Mon, Aug 10, 2009 at 10:58 AM, Ninad Raut <hbase.user.ni...@gmail.com>wrote: > Hi, > I have a Entitiy and a Value associated with it. I want to store this value > as a <key,value> pair in Solr. > I have a Java Object which I am mapping to Solr Doc using > org.apache.solr.client.solrj.beans.Field . Can I also store a Map? and how > can I do so? > This is how I want it to be done: > @Field > Map<String,String> entity; >