lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksander M. Stensby" <>
Subject Re: Multiple queries in one, something similar to a SQL "union"
Date Tue, 09 Jun 2009 10:59:02 GMT
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  

- Aleks

On Tue, 09 Jun 2009 12:33:21 +0200, 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
> 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

Please consider the environment before printing all or any of this e-mail

View raw message