How about this idea: - a special Identifier field. - A DocumentHash class which calculates a hash value from a Document. - A query on Identifier before inserting new Documents to check if it already exists.
--jaf On 5/10/07, STEFANOS STEFANOS <[EMAIL PROTECTED]> wrote:
Hello, I would like to ask you about the function add of lucene 2.0. When i am trying to add a document in an existed index the index's documents are replaced by the new document. I did it according to the book. cheers, Stefanos --------------------------------- Χρησιμοποιείτε Yahoo! Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr