Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 19477 invoked from network); 29 Nov 2010 10:04:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 10:04:18 -0000 Received: (qmail 69789 invoked by uid 500); 29 Nov 2010 10:04:13 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 69600 invoked by uid 500); 29 Nov 2010 10:04:13 -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 69592 invoked by uid 99); 29 Nov 2010 10:04:13 -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 10:04:13 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.215.48] (HELO mail-ew0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 10:04:07 +0000 Received: by ewy9 with SMTP id 9so1893541ewy.35 for ; Mon, 29 Nov 2010 02:03:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.0.79 with SMTP id 57mr5350619wea.39.1291025026136; Mon, 29 Nov 2010 02:03:46 -0800 (PST) Received: by 10.216.93.14 with HTTP; Mon, 29 Nov 2010 02:03:46 -0800 (PST) In-Reply-To: References: <90362ECB07906C40A0297F9D5211A24323C3CBEA71@ITSEMBXCLUS.enterprise.gcal.ac.uk> Date: Mon, 29 Nov 2010 05:03:46 -0500 Message-ID: Subject: Re: IndexWriter Class From: Michael McCandless To: java-user@lucene.apache.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Please don't hijack threads; start a new thread instead. Mike 2010/11/28 jiandong yang : > 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!!! > > -- > =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 > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org