From general-return-318-apmail-lucene-general-archive=lucene.apache.org@lucene.apache.org Wed Aug 30 15:31:57 2006 Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 65155 invoked from network); 30 Aug 2006 15:31:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Aug 2006 15:31:57 -0000 Received: (qmail 87308 invoked by uid 500); 30 Aug 2006 15:31:55 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 87283 invoked by uid 500); 30 Aug 2006 15:31:55 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 87272 invoked by uid 99); 30 Aug 2006 15:31:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2006 08:31:54 -0700 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of fidde.andersson@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2006 08:31:54 -0700 Received: by py-out-1112.google.com with SMTP id w49so264960pyg for ; Wed, 30 Aug 2006 08:31:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=kr5+T2TUrOK4KWgDU7EGIIVKIMOrvzXztl9sp3H3BWGbdhdIymgwaeK0/eWWS2G2Ly4xwznHjoKA/PgGiZUnS8Bl9Lfi40uwvNegSTqmRGdL92T/zNfwyScm6CvGDophcQrVsOqfcyXN5YxdqMWPmH3ojCTsvZNJ6jqXAXJbkmc= Received: by 10.35.82.4 with SMTP id j4mr1248165pyl; Wed, 30 Aug 2006 08:31:32 -0700 (PDT) Received: by 10.35.57.14 with HTTP; Wed, 30 Aug 2006 08:31:31 -0700 (PDT) Message-ID: Date: Wed, 30 Aug 2006 17:31:32 +0200 From: "Fredrik Andersson" To: general@lucene.apache.org Subject: Forcing an IndexReader to read-only MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40109_4069721.1156951892098" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_40109_4069721.1156951892098 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi guys! I don't know if I've missed some crucial feature here, but how d'you actually force an IndexSearcher (and hence, the underlying IndexReader) to go read-only? The default behaviour now seems to be that the first one to acquire a lock automatically gets a read/write-lock, instead of leaving that optional. What's the deal here? Thanks, Fredrik ------=_Part_40109_4069721.1156951892098--