When are deletions permanent?

2005-02-07 Thread Christian Rodriguez
Hi everyone, I need to "update a document" in Lucene. I already know that for that I need to do a delete (IndexReader) and then an add (IndexWriter). I also know that the deletion means been marked as deleted, until optimize(). My question is, when am I SURE that the mark is "commited" to disk? I

Are index updates ATOMIC or not?

2004-10-19 Thread Christian Rodriguez
nothing. if there is no "segments" but there is a "segments.new" then rename it to "segments". Thanks! Christian Rodriguez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Atomicity in Lucene operations

2004-10-15 Thread Christian Rodriguez
Hello guys, I need additions and deletions of documents to the index to be ATOMIC (they either happen to completion or not at all). On top of this, I need updates (which I currently implement with a deletion of the document followed by an addition) to be ATOMIC and DURABLE (once I return from the

Shouldnt IndexWriter.flushRamSegments() be public? or at least protected?

2004-09-27 Thread Christian Rodriguez
Hello, I am trying to use transactions with the Lucene + BDB package. I want to be able to open a directory, and IndexWriter and then do things like: open IndexWriter start transaction 1 write something to the index commit transaction 1 (or abort it) start transaction 2 write something else to th

Transcations in Lucene + Berkeley DB

2004-09-22 Thread Christian Rodriguez
Hi Luceners! I am trying to use transcations in the Berkeley DB + Lucene package from the sandbox. Has anyone done this succesfully? I dont see any transactions being commited or aborted in the code, so I wonder if transactions actually work (shouldnt the main transaction that is used for opening

Re: Problems with Lucene + BDB (Berkeley DB) integration

2004-09-21 Thread Christian Rodriguez
stem", so maybe that is the source of the issues. > > good luck, > andy g > > > > > On Mon, 20 Sep 2004 19:36:51 -0300, Christian Rodriguez > <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > > > I am trying to use the Lucene + BDB integration

Problems with Lucene + BDB (Berkeley DB) integration

2004-09-20 Thread Christian Rodriguez
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 (i