Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65384 invoked from network); 30 Oct 2007 13:28:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2007 13:28:45 -0000 Received: (qmail 25135 invoked by uid 500); 30 Oct 2007 13:27:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25110 invoked by uid 500); 30 Oct 2007 13:27:17 -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 25094 invoked by uid 99); 30 Oct 2007 13:27:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 06:27:17 -0700 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 askxuefeng@gmail.com designates 209.85.198.185 as permitted sender) Received: from [209.85.198.185] (HELO rv-out-0910.google.com) (209.85.198.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 13:27:19 +0000 Received: by rv-out-0910.google.com with SMTP id k20so1597407rvb for ; Tue, 30 Oct 2007 06:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:references:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:x-mimeole:thread-index; bh=M2kfnKXk+axW+AmqcOriy/unOdG5B3qEA/O0tuFZD58=; b=HxmQNEt8Jl++oC4aeWpJsrt65DeuWDkkBbTJGonzaNekoV+dGTYqBsTaPbZuFOFsNXdZz1etxW8VHwOBVSJHOIuPqAf1ZZBcV+S9K/ZpHpKNiAz6Kdz1G8UwLmk2WZKnJFOx/5UPyG/giAu3Ypd6rPPmSUudW9eXgJHaiQZ2mjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:references:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:x-mimeole:thread-index; b=tyy+t35u+lblYS0H/kP3oJrYPT8ZYNhnZMiXJZCkIlHP18gxOkiSu7Dt4TVnL9oryjLQQkudi75SLlJFJuKEwyC64DVeERPIdVl5qqhyTyuiL/VrvsMdrj027TvNMz6v17c98JBW0dkd5sUV4eTnwXK/uLyvCDAgGIWZFoLq+Pw= Received: by 10.140.166.21 with SMTP id o21mr3307483rve.1193750818317; Tue, 30 Oct 2007 06:26:58 -0700 (PDT) Received: from xliao ( [221.220.177.1]) by mx.google.com with ESMTPS id k14sm12962930rvb.2007.10.30.06.26.52 (version=SSLv3 cipher=RC4-MD5); Tue, 30 Oct 2007 06:26:54 -0700 (PDT) From: "askxuefeng" To: References: <6C95DE53-AF5A-4FDA-9561-653DA998F140@mac.com> <506B60AA-C882-462A-B105-18158B8063DD@gmail.com> <324A6792-0167-4C67-AEC6-D12D685A5E7D@mac.com> Subject: RE: Threading Indexing Processes : Can we write concurrently to Index? Date: Tue, 30 Oct 2007 21:26:45 +0800 Message-ID: <001101c81af8$87ff5b90$6300a8c0@asiapacific.hpqcorp.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <324A6792-0167-4C67-AEC6-D12D685A5E7D@mac.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Thread-Index: Acga9dv6GbOmbPwwQ1qeENh8N9nIaQAAnXww X-Virus-Checked: Checked by ClamAV on apache.org You can use a queue to let IndexWriter do its work asychronize -----Original Message----- From: Michael Prichard [mailto:michael_prichard@mac.com] Sent: Tuesday, October 30, 2007 9:10 PM To: java-user@lucene.apache.org Subject: Re: Threading Indexing Processes : Can we write concurrently to Index? So I should create a singe IndexWriter but allow multiple threads to use it? On Oct 30, 2007, at 12:49 AM, Karl Wettin wrote: > > 30 okt 2007 kl. 05.08 skrev Michael Prichard: > >> If I multithread an indexing process can two or more processes write >> to the same index? > > Multiple threads can add documents to the same writer. Multiple > threads can usually not write using each a writer. > > > -- > karl > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org