group.sort? See: https://lucene.apache.org/solr/guide/6_6/result-grouping.html
Best, Erick On Fri, Apr 20, 2018 at 12:57 AM, krishnakittu528 <krishna.kittugenious...@gmail.com> wrote: > HI team, > > My simple doc as follows. > > <?xml version="1.0"?> > > -<add> > > -<doc> > <field name="requestid">1</field> > <field name="actionid">1</field> > <field name="status">open</field> > </doc> > > -<doc> > <field name="requestid">1</field> > <field name="actionid">2</field> > <field name="status">open</field> > </doc> > > -<doc> > <field name="requestid">1</field> > <field name="actionid">3</field> > <field name="status">closed</field> > > > > -<doc> > <field name="requestid">2</field> > <field name="actionid">1</field> > <field name="status">open</field> > </doc> > > -<doc> > <field name="requestid">2</field> > <field name="actionid">2</field> > <field name="status">open</field> > </doc> > > -<doc> > <field name="requestid">2</field> > <field name="actionid">3</field> > <field name="status">closed</field> > </doc> > > -<doc> > <field name="requestid">2</field> > <field name="actionid">4</field> > <field name="status">open</field> > </doc> > > > > > > </add> > > I need to find the closed docs where it contains in the max action present > in each request. But when I tried to query its giving both the docs. I used > query as follow > > *http://localhost:8983/solr/test/select?fq=status:closed&group=true&group.field=requestid* > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html