Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 57469 invoked from network); 26 Aug 2010 15:22:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Aug 2010 15:22:56 -0000 Received: (qmail 34565 invoked by uid 500); 26 Aug 2010 15:22:55 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 34347 invoked by uid 500); 26 Aug 2010 15:22:55 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 34340 invoked by uid 99); 26 Aug 2010 15:22:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 15:22:55 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 15:22:48 +0000 Received: by qyk12 with SMTP id 12so7340933qyk.14 for ; Thu, 26 Aug 2010 08:22:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.37.82 with SMTP id w18mr5445176qad.241.1282836147477; Thu, 26 Aug 2010 08:22:27 -0700 (PDT) Received: by 10.229.221.205 with HTTP; Thu, 26 Aug 2010 08:22:27 -0700 (PDT) Date: Thu, 26 Aug 2010 17:22:27 +0200 Message-ID: Subject: Getting facets for a field from within a SearchComponent From: Luke Venediger To: dev@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0ce0488ae01f40048ebb90e8 --000e0ce0488ae01f40048ebb90e8 Content-Type: text/plain; charset=ISO-8859-1 Hi Folks, I'm writing my first SearchComponent to do custom calculations on search results. Is it possible to get the facet values for a field from within a SearchComponent? I've thought of adapting the StatsComponent and FieldFacetStats classes to try and accomplish this. But before I try that, is there an API call I could make instead? Thanks, Luke --000e0ce0488ae01f40048ebb90e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hi Folks,

I'm writing my first SearchComponent to do custom ca= lculations on search results. Is it possible to get the facet values for a = field from within a SearchComponent? I've thought of adapting the Stats= Component and FieldFacetStats classes to try and accomplish this. But befor= e I try that, is there an API call I could make instead?

Thanks,

Luke


--000e0ce0488ae01f40048ebb90e8--