Return-Path: X-Original-To: apmail-lucy-user-archive@www.apache.org Delivered-To: apmail-lucy-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 47BB6D7FB for ; Mon, 4 Mar 2013 14:18:00 +0000 (UTC) Received: (qmail 92902 invoked by uid 500); 4 Mar 2013 14:18:00 -0000 Delivered-To: apmail-lucy-user-archive@lucy.apache.org Received: (qmail 92774 invoked by uid 500); 4 Mar 2013 14:17:57 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 92736 invoked by uid 99); 4 Mar 2013 14:17:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2013 14:17:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.128.178] (HELO mail-ve0-f178.google.com) (209.85.128.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2013 14:17:51 +0000 Received: by mail-ve0-f178.google.com with SMTP id db10so4660712veb.23 for ; Mon, 04 Mar 2013 06:17:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type:x-gm-message-state; bh=mMeHh3zOlmp4Tt7yFT+P9gqBfqc7N7oTeSjwRZu7Ong=; b=Q38sl8lWaDgjqugEGLzMXxXBTaFP00MBY/xan99DXX1/Ztiu1UY2BuESd1Q50EUH4f U3Dmm6LZhiTWsoNn2sqnK5TUYUHHP4bG6f14AQJVoDkqD/CoWOaqcqX/qL4+k/7o91Y0 DgCFIQz4Ha70K47ine+FNOxYA8ZaQ8iM1kiC23Twqik09ICs2ejTtN+1glqpEKqbITXT eg1rYKo/yq54ttFUhr+vg61i88uyHPYnSBxVCStaZdQXiQR3sm49/Q+QLB5l+7Qb6om+ BDFaAnRRAhX4QQ2ZoNWbx4uMDJdx5z0ggx2lv46xQTlCjURp8WDfnpqxgFOzazPMT2eu bohg== MIME-Version: 1.0 X-Received: by 10.58.214.231 with SMTP id od7mr7987944vec.44.1362406649461; Mon, 04 Mar 2013 06:17:29 -0800 (PST) Received: by 10.58.50.194 with HTTP; Mon, 4 Mar 2013 06:17:29 -0800 (PST) X-Originating-IP: [99.46.94.139] In-Reply-To: References: Date: Mon, 4 Mar 2013 06:17:29 -0800 Message-ID: From: Marvin Humphrey To: user@lucy.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkDYsCUZkgoRTa0d5Xo8dxlBfWegVXs8bF5IyxSNZglZxlWKPyMymiRySuU5kmiPUyQBA0k X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [lucy-user] input 47 too high On Fri, Mar 1, 2013 at 6:26 AM, Thomas den Braber wrote: > I have a problem when adding a lot of records to the index. After about 1000 > records I get this error: input 47 too high. This is a bug, which the following patch should address: --- a/core/Lucy/Index/IndexManager.c +++ b/core/Lucy/Index/IndexManager.c @@ -122,7 +122,7 @@ static uint32_t S_fibonacci(uint32_t n) { uint32_t result = 0; if (n > 46) { - THROW(ERR, "input %u32 too high", n); + return UINT32_MAX; } else if (n < 2) { result = n; > I do a commit every 20 records instead of after every record to increase the > performance. Is this a good idea? or must I do a commit after every record > added In general, you should batch up docs together, as that will result in less file churn and make indexing more efficient. The only reason to commit more frequently is to make data available to searches sooner and meet application-specific requirements for responsiveness during near-real-time updates. Marvin Humphrey