Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 72158 invoked from network); 17 Feb 2009 11:48:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 11:48:43 -0000 Received: (qmail 37251 invoked by uid 500); 17 Feb 2009 11:48:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 37229 invoked by uid 500); 17 Feb 2009 11:48:35 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 37218 invoked by uid 99); 17 Feb 2009 11:48:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 03:48:35 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 11:48:22 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LZOQh-0006pg-UV for java-user@lucene.apache.org; Tue, 17 Feb 2009 03:48:00 -0800 Message-ID: <22055571.post@talk.nabble.com> Date: Tue, 17 Feb 2009 03:47:59 -0800 (PST) From: AmigoProgrammer To: java-user@lucene.apache.org Subject: Re: Querying for a catagory In-Reply-To: <359a92830902161253m1bfc4ad0sa86b17ed0027aa17@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mgr@papaecho.com References: <22044596.post@talk.nabble.com> <359a92830902161253m1bfc4ad0sa86b17ed0027aa17@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org A relevant client is one that is related to one or more documents found by a search. I would store client as a keyword with a document and I would like the query to return clients with the sum of relevant documents score. A client with many low scoring documents could be as relevant as a client with few high scoring documents. Basically I am looking for a 'group by'-like functionality. Best, Michael Erick Erickson wrote: > > What constitutes a "relevant client"? If you want > to restrict the returned documents to a particular client > (or even a set of clients) a simple +client: > would do the trick..... > > Or you could create a Filter for "relevant clients". > > If neither of these helps, could you clarify your > definition of a relevant client? > > Best > Erick > > > On Mon, Feb 16, 2009 at 3:00 PM, AmigoProgrammer wrote: > >> >> Hi, >> >> I have a number of documents that each relate to a client. I would like >> to >> use an index and queries to answer two question: >> - Find relevant documents >> - Find relevant clients >> >> The first one is straight forward. >> For the second one, I am wondering. Should I iterate over the hits and >> compute the most relevant clients. Or is there a clever build-in way of >> answering the question? >> >> Anyone that can help me crack the nut? >> >> Best, >> >> Michael >> -- >> View this message in context: >> http://www.nabble.com/Querying-for-a-catagory-tp22044596p22044596.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Querying-for-a-catagory-tp22044596p22055571.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org