Re: Commit changes

2005-11-28 Thread MALCOLM CLARK
Okay.Thanks to you both. Malcolm

Re: Commit changes

2005-11-28 Thread Otis Gospodnetic
Hi, > Hi thanks for your reply, > > So when I delete a document the writer.close(); this actually commits > the deletion to the index which is not reversible? reader, not writer, but otherwise correct. > I have a facility which deletes but leaves the delete 'undoable' > until the change is comm

Re: Commit changes

2005-11-28 Thread MALCOLM CLARK
Hi thanks for your reply, So when I delete a document the writer.close(); this actually commits the deletion to the index which is not reversible? I have a facility which deletes but leaves the delete 'undoable' until the change is commited by closing the reader. I cannot access the doCommit o

Re: Commit changes

2005-11-28 Thread Otis Gospodnetic
reader.delete(); reader.close(); // flushes to disk Otis --- MALCOLM CLARK <[EMAIL PROTECTED]> wrote: > > Hi Oren, > > In the grand scheme of things and in comparison to some of the > participants knowledge on here I am fairly new and inexperienced to > Java and Lucene. > > I thought my w

Re: Commit changes

2005-11-28 Thread MALCOLM CLARK
Hi Oren, In the grand scheme of things and in comparison to some of the participants knowledge on here I am fairly new and inexperienced to Java and Lucene. I thought my way may be the most effectual method of implementing the commit.I am using many methods of searching/reading the index for a

Re: Commit changes

2005-11-28 Thread Oren Shir
Hi, A final method is not meant to be overridden. Why do you want to inherit IndexReader as your first shot at Lucene and java? Could it be that you've missed the factory method 'open' ? If you are new both to java and to Lucene, I recommend that you get a book, such as "Lucene in Action". Good L

Re: Commit changes

2005-11-28 Thread Oren Shir
Hi, A final method is not meant to be overridden. Why do you want to inherit IndexReader as your first shot at Lucene and java? Could it be that you've missed the factory method 'open' ? If you are new both to java and to Lucene, I recommend that you get a book, such as "Lucene in Action". Good L

Commit changes

2005-11-25 Thread Malcolm Clark
Hi, I am not that experienced with Java and am attempting to implement the commit method for the IndexReader for the application I'm developing. I am trying to extend the IndexReader class but it wont let me! Should I extend something else as I can't see anything in the api to suggest using? My