Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 86362 invoked from network); 7 Jan 2010 13:37:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2010 13:37:44 -0000 Received: (qmail 89192 invoked by uid 500); 7 Jan 2010 13:37:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89113 invoked by uid 500); 7 Jan 2010 13:37:42 -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 89103 invoked by uid 99); 7 Jan 2010 13:37:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 13:37:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 74.125.78.25 as permitted sender) Received: from [74.125.78.25] (HELO ey-out-2122.google.com) (74.125.78.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 13:37:35 +0000 Received: by ey-out-2122.google.com with SMTP id 9so3718080eyd.3 for ; Thu, 07 Jan 2010 05:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=X8HgMhDxSM4I7pPC1zKwghXXiv4D7siZmkxKONjUQ3g=; b=ZzJQSBMEwCVR2TCKktfR0KZL0q4UycqyWFsa3S6LZu6PuGvom9HbzKPzNfct0yJlJ6 x/qVr5/NkpLp27HlzhrE1EP+VTR/505OBFA3VUOEAA7DePg0VHSp3OUxNu8wcRE9Jt3w 2/wiwCcI7xa6ApSHEYLufLru4G8rVqtUkNauE= 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=LihP4AFIB+0mxZX1cnbrNWcKadB8q2cl9URnYzdjN9msEW3PI9Jy1YugRpGAbjLFY2 oE4nvrFVv1Zz9vfVO5btOsmznrUceV3HmWRkR5S7zorkVkzHLRrAoN8EOE5U8TN9a/sS 6e455xRzsHrxpSW4lZ1LIVX/RlvzmSpuBy1ko= MIME-Version: 1.0 Received: by 10.216.87.80 with SMTP id x58mr1975139wee.92.1262871434445; Thu, 07 Jan 2010 05:37:14 -0800 (PST) In-Reply-To: <643aa4871001070413x7629dc2ao5661a18880fcadc4@mail.gmail.com> References: <643aa4871001070413x7629dc2ao5661a18880fcadc4@mail.gmail.com> Date: Thu, 7 Jan 2010 08:37:14 -0500 Message-ID: <359a92831001070537o205957e7nd3d14a0797f5d4ab@mail.gmail.com> Subject: Re: Problems with IndexWriter#commit() on Linux From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6d624693f44a5047c932b81 --0016e6d624693f44a5047c932b81 Content-Type: text/plain; charset=ISO-8859-1 Several questions: 1> are the index files larger after you kill your process? Or have the timestamps changed? 2> are you absolutely sure that your indexer, when you add documents, is pointing at the same directory your search is pointing to? 3> Have you gotten a copy of Luke and examined your index to see if, perhaps, your documents aren't being added the way you think they are? Erick On Thu, Jan 7, 2010 at 7:13 AM, Naama Kraus wrote: > Hi, > > I am using IndexWriter#commit() methods in my program to commit document > additions to the index. I do that once in a while, after a bunch of > documents were added. Since my indexing process is long, I want to make > sure > I don't loose too many additions in case of a crash. > When running on Windows, things work as expected. But when running my code > on Linux, seems like commit() has no effect. If I kill my program and then > restart it, I don't see documents that I added and then committed (they are > not returned by a search operation). > I am running Lucene 3.0.0 > > Can anyone help ? > > Thanks, Naama > > -- > "If you want your children to be intelligent, read them fairy tales. If you > want them to be more intelligent, read them more fairy tales." > "What really interests me is whether God had any choice in the creation of > the world." > (Albert Einstein) > --0016e6d624693f44a5047c932b81--