Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 75312 invoked from network); 29 Nov 2010 03:15:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 03:15:07 -0000 Received: (qmail 52690 invoked by uid 500); 29 Nov 2010 03:15:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 52621 invoked by uid 500); 29 Nov 2010 03:15:05 -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 52613 invoked by uid 99); 29 Nov 2010 03:15:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 03:15:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jdyangchina@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 03:14:59 +0000 Received: by wwb17 with SMTP id 17so1005254wwb.5 for ; Sun, 28 Nov 2010 19:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=jWNz1E1mUnJPqnyvMQfJz+K0l74mpiwPEd0oxk7wwFc=; b=aBn+VODvjVR1qW0wsyyHr2DtuY6U7UdeAQRCai7QH6vkUjrKw9TY707bC+lmnppPIQ pKyj1IdGHMxpPNZUKmMDWAQpHQU0Y1MoN/Mhvc7ZjlRFKl5emDFQzb+Oo6IMJl8HbzCE XyU3W67XN4qah7xygEv/z+5fZ8u8PBCzR6ZEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=r8cxztPrK28rT9yGybAuQHlf1NLWTxfCfHPN6D6VaZszjIBdFDd+bEaLE+a7q6Qx1r QhFfNGN9vJ3luw7NddJedN07DaOJPsL77wEdstQqv2cjG+bIU4q0bfiQ523T8LdPJO6k Y8wdWssx4XyaXIj6xXX+neyoKOJYgekviJcQo= Received: by 10.216.173.79 with SMTP id u57mr4409089wel.40.1291000478139; Sun, 28 Nov 2010 19:14:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.212.213 with HTTP; Sun, 28 Nov 2010 19:14:17 -0800 (PST) In-Reply-To: <90362ECB07906C40A0297F9D5211A24323C3CBEA71@ITSEMBXCLUS.enterprise.gcal.ac.uk> References: <90362ECB07906C40A0297F9D5211A24323C3CBEA71@ITSEMBXCLUS.enterprise.gcal.ac.uk> From: jiandong yang Date: Mon, 29 Nov 2010 11:14:17 +0800 Message-ID: Subject: Re: IndexWriter Class To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001636426893e788b704962878cb --001636426893e788b704962878cb Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable hello, all, here comes my question: as far as I know, lucene now offer the feature that ones can search some doc while the index which contains that specific doc is modifying. for example(pseudocode) : while indexWriter(indexDir).add(docA) is doing, can indexReader(indexDir) offer the query function? after the add is done, should the reader be reopen? or someone show me a simple example, thx a lot!!! --=20 =D7=A3=D2=BB=C7=D0=CB=B3=C0=FB~ Best Regards, =D1=EE=BD=A8=B6=AB =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Jiandong Yang Mobile Phone:15921536660 email: yangjiandong@snda.com Architect management office Shanghai shanda networking development Co., LTD Shanghai 201203, P. R. China =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --001636426893e788b704962878cb--