Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E07339B48 for ; Thu, 23 Feb 2012 18:42:06 +0000 (UTC) Received: (qmail 59486 invoked by uid 500); 23 Feb 2012 18:42:05 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 59371 invoked by uid 500); 23 Feb 2012 18:42:05 -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 59364 invoked by uid 99); 23 Feb 2012 18:42:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 18:42:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rcmuir@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-we0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 18:41:59 +0000 Received: by werj55 with SMTP id j55so1154739wer.35 for ; Thu, 23 Feb 2012 10:41:39 -0800 (PST) Received-SPF: pass (google.com: domain of rcmuir@gmail.com designates 10.180.77.228 as permitted sender) client-ip=10.180.77.228; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rcmuir@gmail.com designates 10.180.77.228 as permitted sender) smtp.mail=rcmuir@gmail.com; dkim=pass header.i=rcmuir@gmail.com Received: from mr.google.com ([10.180.77.228]) by 10.180.77.228 with SMTP id v4mr5463880wiw.2.1330022499162 (num_hops = 1); Thu, 23 Feb 2012 10:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=MqwKJD8AHn9KgrIfZ+SLHXuAWlpbm87EdMdCuW+N8HY=; b=EKl1yNPuntdW6domss1eg0Wtsb4tZ+q9BfXR6r557rMZdJS4MAK7sXJvKfjQZJQAkF rIY6XfsgkfEliZfcu2f0T6/ksjQ2Mqt7XVj8Y2bxNy1yZgnI0VI7n1cBUiFb+k8Y8F/c bmDWMcevkGioAjpzOncZDjZUtJdIafEZ6uCDM= Received: by 10.180.77.228 with SMTP id v4mr4442723wiw.2.1330022499079; Thu, 23 Feb 2012 10:41:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.172.142 with HTTP; Thu, 23 Feb 2012 10:41:19 -0800 (PST) In-Reply-To: References: From: Robert Muir Date: Thu, 23 Feb 2012 13:41:19 -0500 Message-ID: Subject: Re: FieldCache future? To: dev@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Feb 23, 2012 at 1:32 PM, Ryan McKinley wrote: > In LUCENE-3360, there is discussion that DocValues could be used to > replace the existing FieldCache. =C2=A0This seems like is a great > direction, but I am not sure how people see this getting implemented. > > Is the suggestion to add something like: > =C2=A0DocValues fieldCache(String field); > to AtomicReader? No, my suggestion is not to add anything to indexreader at all. IndexReader is decoupled from FieldCache, I think we should keep it that way. You can already sort, group, etc on docvalues fields... so I'm arguing that users should say up front which fields they are going to sort/group on so we can actually be an index and compute this stuff at indexing time, rather than uninverting at search time (and do this stuff more effectively with ideas like LUCENE-3729). Thus this "compute/uninvert on the fly" fieldcache could be moved somewhere else. Grouping etc could work solely on a docvalues api and maybe they have a special ctor to take a SortedBytes impl (and fieldcache implements the docvalues api or some other backwards mechanism). This would remove the redundant implementations (both fieldcache and DV implementations) in stuff like grouping, join, sort, etc Sure its a change, but so is making IndexReader read-only and other things we have done. --=20 lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org