Thanks Alessandro for your suggestion. I tried few queries around results collapsing but I am not able to get the required result.
What I want is just to get representing document from any grouped result based on certain field. E.g. There are results which belong to genre A/B/C/D and each grouped result has all genre's documents present in it. Then is there a way I can specify the genre from which the representing document is chosen where genre is also a field in index. Thanks, Modassar On Tue, Oct 17, 2017 at 5:49 PM, alessandro.benedetti <a.benede...@sease.io> wrote: > Can results collapsing[1] be of use for you ? > if it is the case, you can use that feature and explore its flexibility in > selecting the group head : > > 1) min | max for a numeric field > 2) min | max for a function query > 3) sort > > [1] > https://lucene.apache.org/solr/guide/6_6/collapse-and-expand-results.html > > Cheers > > > > > ----- > --------------- > Alessandro Benedetti > Search Consultant, R&D Software Engineer, Director > Sease Ltd. - www.sease.io > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html >