1 Dec 2008 05:34
Re: Which is faster/better
Ganesh <emailgane <at> yahoo.co.in>
2008-12-01 04:34:48 GMT
2008-12-01 04:34:48 GMT
I have to Tag a document based on User request. On deletion, I should do 'marked for delete' and on document state change, i need to update the document. Update internally does delete and add. I am commiting the writer and re-opening the reader, every minute. Consider, In a minute, lets say User has deleted a document from the UI. If i use IndexWriter, then it is updating the document. but it is getting refreshed only after a minute. If User refreshes his page, then he could see the deleted item again. In order to avoid this situitation, i need to plan 1. Delete the document using reader 2. Add the document with new state using Writer. I think, we can't avoid using DeleteDocument of Reader. Suggest me, if there is any other way. Regards Ganesh ----- Original Message ----- From: "Antony Bowesman" <adb <at> teamware.com> To: <java-user <at> lucene.apache.org> Sent: Wednesday, November 26, 2008 4:00 AM Subject: Re: Which is faster/better > Michael McCandless wrote: >> >> If you have nothing open already, and all you want to do is delete(Continue reading)
RSS Feed