Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 46961 invoked from network); 30 May 2009 17:27:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 May 2009 17:27:21 -0000 Received: (qmail 98602 invoked by uid 500); 30 May 2009 17:27:33 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 98506 invoked by uid 500); 30 May 2009 17:27:33 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 98496 invoked by uid 99); 30 May 2009 17:27:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 17:27:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of markrmiller@gmail.com designates 209.85.221.112 as permitted sender) Received: from [209.85.221.112] (HELO mail-qy0-f112.google.com) (209.85.221.112) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 17:27:23 +0000 Received: by qyk10 with SMTP id 10so3745383qyk.29 for ; Sat, 30 May 2009 10:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3NWTdvqPxBMy2dGfWThpaH2fmIJQAmzsKq/nXbWY4xk=; b=gdqrImu0IgBkC1mxK3H6iOcjnqy1si9Z59rkAi4KNHcc5IA93lLXJr4qZpeNnEctBp Q4PB3p6l/Z8u5bmH4VviIGDJYZOTcBF2byv+U9wp9Ekbl7vy17qmThKq7kKdB/oUPh5P vhUzAij7EwM0pgfMJCdUgHWuyqwBRI/MPjVIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=BCcZVIjyR/mm7BW5gZUWN3nuPJW76Rmsf1HnoB+uV3tyv5iA/d1bkke4BQIx1JDxYX YGbamw2z2wEH7u7Y0eC+i9ZHE+JgguCqQiW7pb9Ybs5UPKPK50lKWlS2YEI8AVZ3cc2p X2rM60fgijUqnscXkaftcrAFDpQ2Kwq3DiSv8= Received: by 10.224.73.196 with SMTP id r4mr3993262qaj.318.1243704422376; Sat, 30 May 2009 10:27:02 -0700 (PDT) Received: from ?192.168.1.120? (ool-44c639d9.dyn.optonline.net [68.198.57.217]) by mx.google.com with ESMTPS id 4sm180016qwe.57.2009.05.30.10.27.01 (version=SSLv3 cipher=RC4-MD5); Sat, 30 May 2009 10:27:01 -0700 (PDT) Message-ID: <4A216C64.9070601@gmail.com> Date: Sat, 30 May 2009 13:27:00 -0400 From: Mark Miller User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: ReadOnly IndexReaders References: <9ac0c6aa0905300529u3cf4b17ej6a6a084113a50c47@mail.gmail.com> <4C47A611-5D1D-46BF-B17E-DCAEAA664D7A@apache.org> In-Reply-To: <4C47A611-5D1D-46BF-B17E-DCAEAA664D7A@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Is there a valid use case? It seems like it might be a tricky method, because its an IndexReader property and not the index. A user should probably technically treat read-only/non-read-only the same because it does not imply a different IndexReader didn't make changes/do deletes? It doesn't sync deletes, but should you use the API any differently? I don't see it hurting anything of course, but is there a real use case? Grant Ingersoll wrote: > OK, I'll do it. > > On May 30, 2009, at 8:29 AM, Michael McCandless wrote: > >> Makes sense! >> >> Mike >> >> On Fri, May 29, 2009 at 5:21 PM, Grant Ingersoll >> wrote: >>> Does it make sense to add isReadOnly() to IndexReader such that one can >>> easily introspect whether a Reader is read only? >>> >>> -Grant >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-dev-help@lucene.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > -- - Mark http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org