lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jafarim <jafa...@gmail.com>
Subject Re: add in an existing document
Date Fri, 11 May 2007 17:53:19 GMT
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 <stefanos888888@yahoo.gr> 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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message