> > I don't know if I follow you correctly, but you are saying that you want X > results per type? > You are right. I need "X" number of results per type.
So you do something like limit=X and query = type:Y etc. and merge the > results? > That is what the question is! Which means, if I have 4 types, I am currently making 4 queries to Solr. The question is aimed to find a possibility of doing it in a single query ... and, suggesting that the implementation could be more on the lines of a SQL Union. Cheers Avlesh On Tue, Jun 9, 2009 at 4:29 PM, Aleksander M. Stensby < aleksander.sten...@integrasco.no> wrote: > I don't know if I follow you correctly, but you are saying that you want X > results per type? > So you do something like limit=X and query = type:Y etc. and merge the > results? > > - Aleks > > > > On Tue, 09 Jun 2009 12:33:21 +0200, Avlesh Singh <avl...@gmail.com> wrote: > > I have an index with two fields - name and type. I need to perform a >> search >> on the name field so that *equal number of results are fetched for each >> type >> *. >> Currently, I am achieving this by firing multiple queries with a different >> type and then merging the results. >> In my database driven version, I used to do a "union" of multiple queries >> (and not separate SQL queries) to achieve this. >> >> Can Solr do something similar? If not, can this be a possible enhancement? >> >> Cheers >> Avlesh >> > > > > -- > Aleksander M. Stensby > Lead software developer and system architect > Integrasco A/S > www.integrasco.no > http://twitter.com/Integrasco > > Please consider the environment before printing all or any of this e-mail >