Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 11547 invoked from network); 13 Nov 2009 20:43:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 20:43:45 -0000 Received: (qmail 56187 invoked by uid 500); 13 Nov 2009 20:43:44 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 56123 invoked by uid 500); 13 Nov 2009 20:43:44 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 56113 invoked by uid 99); 13 Nov 2009 20:43:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 20:43:44 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 20:43:42 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id B537971C901; Fri, 13 Nov 2009 12:43:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id B2E2871C8FE for ; Fri, 13 Nov 2009 12:43:21 -0800 (PST) Date: Fri, 13 Nov 2009 12:43:21 -0800 (PST) From: Chris Hostetter To: "solr-dev@lucene.apache.org" Subject: Re: union functionality? In-Reply-To: <6DFEF61846D5434A8DFC680FF775CFCC39393F78D6@server05.ethos.com.cn> Message-ID: References: <6DFEF61846D5434A8DFC680FF775CFCC39393F78D6@server05.ethos.com.cn> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII http://people.apache.org/~hossman/#solr-dev Please Use "solr-user@lucene" Not "solr-dev@lucene" Your question is better suited for the solr-user@lucene mailing list ... not the solr-dev@lucene list. solr-dev is for discussing development of the internals of the Solr application ... it is *not* the appropriate place to ask questions about how to use Solr (or write Solr plugins) when developing your own applications. Please resend your message to the solr-user mailing list, where you are likely to get more/better responses since that list also has a larger number of subscribers. : Date: Fri, 6 Nov 2009 13:03:03 +0800 : From: Tang Minzhi : Reply-To: solr-dev@lucene.apache.org : To: "solr-dev@lucene.apache.org" : Subject: union functionality? : : Hey everyone, : : I'm newbie to solr. : : I have a question below: : Assume that I have the fields 'item_name' and 'category_name', like : item_name | category_name : apple fruit : orange fruit : rice grain : corn grain : strawberry fruit : beef meat : .... : : I want to fetch the result set of "top 2 item of each categories I specified (might be 2 of them 'fruit', 'grain')" at one time, instead of fetch them through several requests, is it possible with solr? : : It seems that in mysql database, there's union functionality which can combine several request queries together, so how about solr? : : Thanks. : : Best regards, : -------------------------------- : Minzhi Tang : Skype: minzhitang : MSN: tminzhi@hotmail.com -Hoss