lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "m.harig" <>
Subject updating index
Date Fri, 04 Dec 2009 10:30:59 GMT

hello all

        how do i update my existing index to avoid my duplicates , this is
how am doing my indexing

   doc.add(new Field("id",""+i,Field.Store.YES,Field.Index.NOT_ANALYZED));
   doc.add(new Field("title", indexForm.getTitle(), Field.Store.YES,
   doc.add(new Field("contents", indexForm.getContent(),
                Field.Store.YES, Field.Index.ANALYZED));
   writer.updateDocument(new Term("id"), doc);

   but i've no luck , the index getting duplicate documents , how do i
handle it? please anyone help me?
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message