Dear Toke, Thanks for your input. Infact my scenario is much more complex, let me give you an example,
q=*.*&fq=(country:india AND age:[25 TO 40] AND sex:male) OR (country:iran AND income:[50000 TO 90000]) You can see each subquery has different parameters, I may want to limit the first subquery count to 60 while second one to 40. Yes, I need to give different limit for each subquery. Could you suggest me a way to do this? Thanks again. On Thu, Aug 6, 2015 at 2:55 PM, Toke Eskildsen <t...@statsbiblioteket.dk> wrote: > On Thu, 2015-08-06 at 12:32 +0530, Selvam wrote: > > Good day, I wanted to run a filter query (fq), say, I need to run > > > > q=*.*&fq=(country:india) OR (country:iran)&limit=100 > > > > Now it may return me 100 records that might contain 70 Indians & 30 Iran > > records. Now how can I force to fetch 50 Indian & 50 Iran records using a > > single SOLR query? > > q=*.*&fq=(country:india) OR (country:iran) > &group=true&group.field=country&group.limit=50 > > https://cwiki.apache.org/confluence/display/solr/Result+Grouping > > - Toke Eskildsen, State and University Library, Denmark > > > -- Regards, Selvam