Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E43B17396 for ; Thu, 27 Aug 2015 20:22:00 +0000 (UTC) Received: (qmail 67737 invoked by uid 500); 27 Aug 2015 20:21:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67681 invoked by uid 500); 27 Aug 2015 20:21:58 -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 67670 invoked by uid 99); 27 Aug 2015 20:21:58 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2015 20:21:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0699E1AAF26 for ; Thu, 27 Aug 2015 20:21:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7HWprrU4q_4p for ; Thu, 27 Aug 2015 20:21:52 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id BAB68255AC for ; Thu, 27 Aug 2015 20:21:51 +0000 (UTC) Received: by igcse8 with SMTP id se8so2849552igc.1 for ; Thu, 27 Aug 2015 13:21:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=UHc78p48cVjcFQq9v0pSTuEDoXaNYf3dV7PmL4qqX9g=; b=aQL7SEwZXlN5nCMK2PfWMfeGRmeAVOn9O0X4oG6b7QxPBLstiFFtp6Cx4owFKjljC/ Yyinx2g6T5E9Xeat9L+W8bArmCxa5FACnois/lR8WCvtg147TDXYTOBTWZuXb7bCPJWh IY4i7mnKOQNeuJiBKM0F/p5ocL0u6i3Z93JW1KaeHKgJ3tBwObDhnYyCs7u9HqZBLokC Xqzzwgw5vE4Mu5H+5aN4zNVCu+8OAwbkAvq1fJ4fwL6ACheTNSDrzFe5qkZkLcQP4UMu S0kDfbXWqdjiYqPCRVhphF12hHazQco+BqI1oBHRLFpeQpwrl5GwXx3h05GmVa4NTFEB UjHw== X-Gm-Message-State: ALoCoQnuwu1v4yAAU/xTsMoXyNqgRON3gq/stuKjEJEV9h9tNGoIHYekFDJ+Nfvl3knPfxLxFQBv X-Received: by 10.50.30.106 with SMTP id r10mr433374igh.59.1440706911136; Thu, 27 Aug 2015 13:21:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.62.135 with HTTP; Thu, 27 Aug 2015 13:21:31 -0700 (PDT) In-Reply-To: References: From: Michael McCandless Date: Thu, 27 Aug 2015 16:21:31 -0400 Message-ID: Subject: Re: Number of threads in index writer config? To: Lucene Users Content-Type: text/plain; charset=UTF-8 Actually, the nightly Indexer.java (which tracks Lucene's trunk) did set call IWC.setMaxThreadStates, up until we removed this setting entirely in https://issues.apache.org/jira/browse/LUCENE-6659 So now (as of Lucene 5.3.0) IndexWriter lets you use as many threads as you want. Mike McCandless http://blog.mikemccandless.com On Thu, Aug 27, 2015 at 5:22 AM, Rob Audenaerde wrote: > Hi all, > > I was wondering about the number of threads to use for indexing. > > There is a setting: getMaxThreadStates() in the IndexWriterConfig that > determines how many threads can write to the index simultaneously. > > The luceneutil Indexer.java (that is used for the nightly benchmarks), > seems to use the default value (8), while it uses 20 indexing threads. > > Is there a reason to not set the maxThreadStates to the number of indexing > thread? > > Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org