title: Use grouping on MLT results from MLT handler
body: <p>I need to find similar documents to a document and also group the result based on a field say category.</p>
  
  <p>I could find the MLT handler and I could find the grouping feature.</p>
  
  <ul>
  <li>MLT handler - <a href="http://wiki.apache.org/solr/MoreLikeThisHandler" rel="nofollow">http://wiki.apache.org/solr/MoreLikeThisHandler</a></li>
  <li>Grouping - <a href="http://wiki.apache.org/solr/FieldCollapsing" rel="nofollow">http://wiki.apache.org/solr/FieldCollapsing</a></li>
  </ul>
  
  <p>But I couldn't find a way to apply the grouping on the response given by MLT handler.
  Is there any way I can achieve this ?</p>
  
  <p>Just adding grouping variables to the MLT handler didn't help </p>
  
  <pre><code>http://$HOST:8983/solr/collection1/mlt?q=id:SP2514N&amp;wt=json&amp;indent=true&amp;mlt.fl=name&amp;mlt.mintf=1&amp;mlt.mindf=0&amp;group=true&amp;group.field=manu_id_s
  </code></pre>