Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 14129 invoked from network); 10 Mar 2011 23:26:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 23:26:38 -0000 Received: (qmail 2133 invoked by uid 500); 10 Mar 2011 23:26:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 2094 invoked by uid 500); 10 Mar 2011 23:26:36 -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 2084 invoked by uid 99); 10 Mar 2011 23:26:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 23:26:36 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 23:26:30 +0000 Received: by qyk30 with SMTP id 30so2240125qyk.14 for ; Thu, 10 Mar 2011 15:26:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=vSHggGN4wQ0FQsfSavU1dbJBySgzz5hxDEfvHl2hJxg=; b=wMndhcf7KR/nq6A14BAZYCFgBZq7ilkWrBuymL5Wu0UPh+Woapdur4lXtFdP0lZj8p IVtMuQtzH0V4zCWm23FaPSfY/G7CsVKt4WdsNFIDUM6lPec1+18S/UKuHcQ4znmOvuL/ Uhi78HiHTsBqNHkTOtBUT9z9zsBC5lZZra0L4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vTo+h9YvarHYlBKZi0Ag/CODNAGRDVJjVdgzwQSLo8QMkm3mQikU/O54vu9spyI72X LiglQlOk5eufLYc4SSfs1ajQp89OgFZt3R8BP5Lnw7rhs7UgwzF4Fjc0zftoHJ3oYWb1 yAjhQ+Am4V7c0JtPA6QCuG2iS9hDPKYss/iIY= MIME-Version: 1.0 Received: by 10.229.37.79 with SMTP id w15mr3066037qcd.180.1299799569200; Thu, 10 Mar 2011 15:26:09 -0800 (PST) Received: by 10.229.82.82 with HTTP; Thu, 10 Mar 2011 15:26:09 -0800 (PST) In-Reply-To: <1299792310271-2662376.post@n3.nabble.com> References: <1299792310271-2662376.post@n3.nabble.com> Date: Thu, 10 Mar 2011 18:26:09 -0500 Message-ID: Subject: Re: IndexSearcher Single Instance Bottleneck? From: Erick Erickson To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org No, Lucene itself shouldn't be doing this, the recommendation is for multiple threads to share a single searcher. I'd first look upstream, are your requests being processed serially? I.e. is there a single thread that's handling requests? Best Erick On Thu, Mar 10, 2011 at 4:25 PM, RobM wrote: > I currently have two types of searches on my website that are using the same > index and same instance of index searcher. One of the searches usually only > takes 50 - 100 milliseconds but the second usually takes 2 seconds. It seems > as though when someone does the second search and another user does the > first search immediately after the first search will wait for the second to > complete. Is that how Lucene works or am I just looking at my test wrong. If > so how should i solve this issue? Two indexes or two index searchers? > > -- > View this message in context: http://lucene.472066.n3.nabble.com/IndexSearcher-Single-Instance-Bottleneck-tp2662376p2662376.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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