Added code to generate solr document for mgm search.