lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen ...@statsbiblioteket.dk>
Subject Re: Limits in individual filter sub queries
Date Thu, 06 Aug 2015 09:25:54 GMT
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



Mime
View raw message