Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 99778 invoked from network); 21 Sep 2004 17:10:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Sep 2004 17:10:40 -0000 Received: (qmail 69736 invoked by uid 500); 21 Sep 2004 17:10:09 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 69686 invoked by uid 500); 21 Sep 2004 17:10:08 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 69608 invoked by uid 99); 21 Sep 2004 17:10:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of crodriguez@gmail.com designates 64.233.170.207 as permitted sender) Received: from [64.233.170.207] (HELO mproxy.gmail.com) (64.233.170.207) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 21 Sep 2004 10:10:05 -0700 Received: by mproxy.gmail.com with SMTP id 75so1146792rnk for ; Tue, 21 Sep 2004 10:10:03 -0700 (PDT) Received: by 10.38.207.19 with SMTP id e19mr358760rng; Tue, 21 Sep 2004 10:10:03 -0700 (PDT) Received: by 10.38.86.14 with HTTP; Tue, 21 Sep 2004 10:10:03 -0700 (PDT) Message-ID: Date: Tue, 21 Sep 2004 14:10:03 -0300 From: Christian Rodriguez Reply-To: Christian Rodriguez To: Lucene Users List Subject: Re: Problems with Lucene + BDB (Berkeley DB) integration In-Reply-To: <55b2c6b904092018135c77c0e9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <55b2c6b904092018135c77c0e9@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Andy, you are right. I tried with Lucene 1.3 and it worked perfectly. This should be added to a README in the Lucene + BDB sandbox (or somewhere) so people dont spend days struggling with those weird non - deterministic bugs I am getting... Now, I do need to use version 1.4, so Id like to see if its actually the cluster file system causing the problem in the integration with Berkeley DB. Is it possible to turn the cluster file system OFF in Lucene 1.4? Anyone has any idea what other things could be causing BDB + Lucene to work with Lucene 1.3 and not with 1.4? Thanks! Xtian On Mon, 20 Sep 2004 18:13:46 -0700, Andy Goodell wrote: > I used BDB + lucene successfully using the lucene 1.3 distribution, > but it broke in my application with the 1.4 distribution. The 1.4 > dist uses a different file system by default, the "cluster file > system", so maybe that is the source of the issues. > > good luck, > andy g > > > > > On Mon, 20 Sep 2004 19:36:51 -0300, Christian Rodriguez > wrote: > > Hi everyone, > > > > I am trying to use the Lucene + BDB integration from the sandbox > > (http://cvs.apache.org/viewcvs.cgi/jakarta-lucene-sandbox/contributions/db/). > > I installed C Berkeley DB 4.2.52 and I have the Lucene jar file. > > > > I have an example program that indexes 4 small text files in a > > directory (its very similar to the IndexFiles.java in the Lucene demo, > > except that it uses BDB + Lucene). The problem I have is that > > executing the indexing program generates different results each time I > > run it. For example: If I start with an empty index, run the indexing > > program and then query the index I get the correct results; then I > > delete the index to start from scratch again, and perform the same > > sequence and I get no results. (?) > > > > What puzzles me is the non-deterministic results... the same execution > > sequence generates two different results. I then wrote a program to > > dump the index and I found out that the list of files that end up in > > the index is different every time I index those 4 files. > > > > For example: > > 1st run: contents of directory: _4.f2, _4.f3, _4.cfs, _4.fdx, _4.fnm, > > _4.frq, _4.prx, _4.tii, segments, deletable. (9 files) > > 2nd run: contents of directory: 0:_4.f1, _4.cfs, _4.fdt, _4.fdx, > > _4.fnm, _4.frq, _4.prx, _4.tii, _4.tis, segments, deletable. (11 > > files) > > > > Does anyone have any idea why this is happening? > > Has anyone been able to use the BDB + Lucene integration with no problems? > > > > Id appreciate any help or pointers. > > Thanks! > > Xtian > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org