Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 94251 invoked from network); 16 Oct 2008 13:42:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 13:42:01 -0000 Received: (qmail 44992 invoked by uid 500); 16 Oct 2008 13:41:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 44965 invoked by uid 500); 16 Oct 2008 13:41:55 -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 44954 invoked by uid 99); 16 Oct 2008 13:41:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 06:41:55 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.198.229 as permitted sender) Received: from [209.85.198.229] (HELO rv-out-0506.google.com) (209.85.198.229) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 13:40:49 +0000 Received: by rv-out-0506.google.com with SMTP id f6so3133714rvb.5 for ; Thu, 16 Oct 2008 06:41:26 -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:to :subject:in-reply-to:mime-version:content-type:references; bh=YURUtun9WGlpZgpuJtfuwtVDUg6hMSqk7yh1TPgVb/g=; b=IaplANuIyiMppDbtYpMWcOtF323UqdZret6eJ/oRkQPo1X7v34ih7lq9AplemuEZxr F9djm9PvDcBGOFBIhHfJ1QQOyYn/sV7OXQuMkHzDDBJLfY+z/b0KQpKDjzgHJVFvQDwl Dc5L2Q/8MKTS68y+gUs9qobuvde0jotBTHPfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Eer9vVZ1Ikq/Oyq9c6Ku0nKmWT1ppsEn1oe2HRsmdg6HfRLbiKezM//b+Jg+WrRZA+ wUt8SrKpVOxhJ/abcNCf2vW0C8smCdrTUazWpxv/sJHfSqb4AvBHRS0zpnr/9q35J5R5 Qq65h8+HI0/K3H99GT/5Ke/bvMgdgA9S+Jkl4= Received: by 10.141.129.14 with SMTP id g14mr1614163rvn.56.1224164486791; Thu, 16 Oct 2008 06:41:26 -0700 (PDT) Received: by 10.140.135.10 with HTTP; Thu, 16 Oct 2008 06:41:26 -0700 (PDT) Message-ID: <359a92830810160641y7a407118tf008d485e0ced6a9@mail.gmail.com> Date: Thu, 16 Oct 2008 09:41:26 -0400 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: update IndexSearcher In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24641_1423118.1224164486777" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24641_1423118.1224164486777 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, assuming that your searcher does not close/reopen the reader. Conceptually, the indexsearcher takes a snapshot of your index at the instant it's opened and uses that snapshot until you close the underlying reader, so you should be fine. Best Erick On Thu, Oct 16, 2008 at 6:17 AM, mahdi yari wrote: > hi dears > > i have a question of Lucene > > i have on index with 1,000 document with id field(String:UUID) and one > indexSearcher for search on it, > after that, i start one IndexWriter that writes 1,000,000 new document in > to > index, > now if i do not update IndexSearcher, can i search on first 1,000 document > without problem?? > > thanks and sorry for bad English > Mahdi > ------=_Part_24641_1423118.1224164486777--