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 1FD5A10E8A for ; Thu, 20 Feb 2014 11:13:18 +0000 (UTC) Received: (qmail 49015 invoked by uid 500); 20 Feb 2014 11:13:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 48293 invoked by uid 500); 20 Feb 2014 11:13:14 -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 48282 invoked by uid 99); 20 Feb 2014 11:13:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 11:13:13 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.128.175] (HELO mail-ve0-f175.google.com) (209.85.128.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 11:13:07 +0000 Received: by mail-ve0-f175.google.com with SMTP id c14so1674990vea.20 for ; Thu, 20 Feb 2014 03:12:46 -0800 (PST) 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=SM/sWivsohkqRFaCIbYI04pB6dwc9XDFtg7Gsq54RC4=; b=LomJzerKVFmoI5KkiACn8dvLy1jETpI3A6Ykh07KhOrMLBlQZXa/+jJ9FQ3a8WEmDc 3Y6CIEig59zk8ChaaLF1Q1UrPq44hq4ONZjZ2Pr9JceGzE1bYtRqZUdBZpxgz+jS5btG z6D10DtQ4Y78T47qmGf8Xmi1RTCO6eIW6v0P+6eUPjOuJ8MSTC0A87YwYMoHHTCZP+TT T+rZtoegaExtVk5clNELlWocmIKOBBNtEikg0qLemGney1dzt4YsZ/rkikNe/qoeFg47 POdkZeyUB5vb2aiWVaRlxhErfS6cQlVoHT46EkvNSojsn+y/CqaW6f+URoz9oYRChQZk PF9w== X-Gm-Message-State: ALoCoQnmQ0xVnB/kMHLMKv7gjoEnY76PaOfsBzsPNp6OxT8gxj1HF7KbuLNHUPNPeG5hIhxzB+ob X-Received: by 10.52.159.197 with SMTP id xe5mr509189vdb.89.1392894766386; Thu, 20 Feb 2014 03:12:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.221.5.3 with HTTP; Thu, 20 Feb 2014 03:12:26 -0800 (PST) In-Reply-To: References: From: Michael McCandless Date: Thu, 20 Feb 2014 06:12:26 -0500 Message-ID: Subject: Re: NRT indexing and ControlledRealTimeReopenThread To: Lucene Users Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org It is intended that there are two different stale times. When a specific generation is requested, we wait for the minStaleSec since the last reopen; this is to prevent too-frequent reopens when specific gens are requested. The maxStaleSec is how long we wait between reopens for the "normal" periodic reopens, when the incoming request does not need a specific generation. This approach is only effective if most searches can just use the current searcher, i.e. most searches do not need a specific generation. If you truly need "real-time" values for nearly all searches then LiveFieldValues might be useful. Mike McCandless http://blog.mikemccandless.com On Thu, Feb 20, 2014 at 4:37 AM, Hans Lund wrote: > Hi all > > I'm a bit unsure about the intended function of > the ControlledRealTimeReopenThread in a NRT context - especially regarding > stale times. > > As of now if you are waiting for a generation to become refreshed, it looks > like the stale time is either the min stale time or the max stale time. Is > this the intended behavior? > > What i'm really looking for is 2 stale times with a slightly different > semantics. a stale time for refreshing when no specific generation is > needed, and another stale time for blocking acquiring of the blocked > searcher, (well the last time can actually be avoided all together as I > can't see any usage for a blocking acquiring should actually sleep at all > It would be better to run the SearchManager.maybeRefreshBlocking(); in the > thread needing the searcher @ a current generation. > > > Cheers --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org