
simon.willnauer at googlemail
Nov 10, 2009, 2:07 AM
Post #8 of 9
(783 views)
Permalink
|
|
Re: remove duplicate when merging indexes
[In reply to]
|
|
Ian got it :) simon On Tue, Nov 10, 2009 at 10:58 AM, Ian Lea <ian.lea [at] gmail> wrote: > Try updateDocument(new Term("id", ""+i), doc). > > See javadocs for Term constructors. > > > > -- > Ian. > > > On Tue, Nov 10, 2009 at 9:47 AM, m.harig <m.harig [at] gmail> wrote: >> >> Thanks again >> >> this is my code , >> >> Â doc.add(new Field("id",""+i,Field.Store.YES,Field.Index.NOT_ANALYZED)); >> >> Â doc.add(new Field("title", indexForm.getTitle(), Field.Store.YES, >> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Field.Index.ANALYZED)); >> >> Â doc.add(new Field("contents", indexForm.getContent(), >> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Field.Store.YES, Field.Index.ANALYZED)); >> >> Â writer.updateDocument(new Term(""+i), doc); >> >> no changes still .. Am i doing wrong??? help me >> -- >> View this message in context: http://old.nabble.com/remove-duplicate-when-merging-indexes-tp26280244p26280758.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene >> For additional commands, e-mail: java-user-help [at] lucene >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|