Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09BEA10EF2 for ; Fri, 5 Dec 2014 21:25:15 +0000 (UTC) Received: (qmail 77869 invoked by uid 500); 5 Dec 2014 21:25:08 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 77819 invoked by uid 500); 5 Dec 2014 21:25:08 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 77807 invoked by uid 99); 5 Dec 2014 21:25:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 21:25:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of minl07123@gmail.com designates 209.85.212.174 as permitted sender) Received: from [209.85.212.174] (HELO mail-wi0-f174.google.com) (209.85.212.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 21:24:40 +0000 Received: by mail-wi0-f174.google.com with SMTP id h11so2651473wiw.13 for ; Fri, 05 Dec 2014 13:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CI4WWJz2Gs4n1GYytU5i+CZnweLrs6MFbW/LTk4+ncs=; b=mnuA/hyKjiPaGsvFV/TpdePJVTWqqnVJjFw9nFfsTvmvPHXbMuxAjNJ0yJsJNJvh++ q4cgzlB66A57/a12fDBJwVOmCp0D3SyLJDN7Yw1cnI6LXyLkSC4ib2yfB4ikNeec6K7g jcvZiLk+6tOMHmR3+U22ckmq6BcWuA63Lj2QF8ZlEz4PrVBIiTzns50cmN5n5Jqn7GJ3 tDXMC1UBb95BjEMIaYC0aIIg84yd8/0zcC1Nb2b+DACYbyTgrWF2BXZWFmsAiyHgG4Mz NU9X5MjS+WqPyuA5lo6iongkpUyajkY9IEE9YtQ6pX8mq4evTMtzDRDycpiAMYJP8ubx SNtg== MIME-Version: 1.0 X-Received: by 10.194.184.199 with SMTP id ew7mr27792596wjc.85.1417814544981; Fri, 05 Dec 2014 13:22:24 -0800 (PST) Received: by 10.194.108.200 with HTTP; Fri, 5 Dec 2014 13:22:24 -0800 (PST) In-Reply-To: References: Date: Fri, 5 Dec 2014 13:22:24 -0800 Message-ID: Subject: Re: unable to build spellcheck in solr From: Min L To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7bb03e2e4fa99e05097eac99 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb03e2e4fa99e05097eac99 Content-Type: text/plain; charset=UTF-8 Thanks for your reply. This is all it is in the solr log, no stack. It fails regardless of buildOncommit=true or false by building it manually. The file fst.bin was created. I found the source code in suggester.java where it logged the error. Perhaps lookup.store(new FileOutputStream(target)) failed? Wonder why. if (storeDir != null) { File target = new File(storeDir, factory.storeFileName()); if(!lookup.store(new FileOutputStream(target))) { if (sourceLocation == null) { assert reader != null && field != null; * LOG.error("Store Lookup build from index on field: " + field + " failed reader has: " + reader.maxDoc() + " docs");* } else { LOG.error("Store Lookup build from sourceloaction: " + sourceLocation + " failed"); } } else { LOG.info("Stored suggest data to: " + target.getAbsolutePath()); } } On Fri, Dec 5, 2014 at 12:59 PM, Erick Erickson wrote: > What's the rest of the stack trace? There should > be a root cause somewhere. > > Best, > Erick > > On Fri, Dec 5, 2014 at 11:07 AM, Min L wrote: > > Hi all: > > > > My code using solr spellchecker to suggest keywords worked fine locally, > > however in qa solr env, it failed to build it with the following error in > > solr log: > > > > ERROR Suggester Store Lookup build from index on field: myfieldname > failed > > reader has: xxx docs > > > > I checked the solr directory and the file fst.bin was created > successfully > > though. Does anyone know what caused the issue? > > > > command to build: > > http://xxxx:8080/solr/mycore/suggestkeyword?spellcheck.build=true > > > > Thanks a lot! > --047d7bb03e2e4fa99e05097eac99--