Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Shalin Shekhar Mangar
On Tue, Jun 9, 2009 at 4:03 PM, Avlesh Singh 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 > ty

Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Avlesh Singh
> > 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 type

Re: Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Aleksander M. Stensby
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 wrote: I have an index with two fields - name and type. I n

Multiple queries in one, something similar to a SQL "union"

2009-06-09 Thread Avlesh Singh
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