Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 19994 invoked from network); 8 Feb 2008 23:54:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 23:54:03 -0000 Received: (qmail 46808 invoked by uid 500); 8 Feb 2008 23:53:49 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 46763 invoked by uid 500); 8 Feb 2008 23:53:49 -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 46752 invoked by uid 99); 8 Feb 2008 23:53:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 15:53:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [69.12.216.205] (HELO theronge.com) (69.12.216.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 23:53:32 +0000 Received: from Compie (adsl-76-227-76-97.dsl.chmpil.sbcglobal.net [76.227.76.97]) (Authenticated sender: mronge) by theronge.com (Postfix) with ESMTP id DF7516437E for ; Fri, 8 Feb 2008 15:53:19 -0800 (PST) Message-Id: <81E4E4ED-0528-4994-84A0-7CFE03C1CCC3@theronge.com> From: Matt Ronge To: java-user@lucene.apache.org In-Reply-To: <198EF845-819A-48EF-ADE2-DEA45CBF9916@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Faceting with payloads Date: Fri, 8 Feb 2008 17:53:18 -0600 References: <46CBB02C-726E-470B-BE30-FCB5BD2EAA21@theronge.com> <198EF845-819A-48EF-ADE2-DEA45CBF9916@gmail.com> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 8, 2008, at 11:17 AM, Karl Wettin wrote: > > 6 feb 2008 kl. 23.10 skrev Matt Ronge: > >> I may index the token "house" maybe found in different places with >> different types. If the user query contains house, I want to report >> the number of instances of the token house of type A, type B and so >> on. >> >> Should I be using payloads for this? If so, I'd like to be able to >> count up all the instances of for each type. Then I can show the >> results, along with TypeA (100 hits), TypeB (1000 hits) so on. > > Pehaps, what do you do with these numbers you extract? I would like to display this to the user along with the search results. So then can see that there are 100 hits for TypeA, and then can specify to get results just of TypeA. So on top of being able to count hits based on the payload, I'll need to run a query that looks at the payloads. -- Matt Ronge --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org