lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Potehin" <>
Subject Duplicates recods in index
Date Wed, 08 Feb 2006 10:00:30 GMT
Is it possible to add records into lucene index using following


1) create Document object 

2) add 5 fields into Document (id, name, field1, field2, field3). All
fields are stored, indexed and tokenized 

3) check if the document with current id and name was added before 

4) if yes then set field3 value to 1, else 2 

5) add Document into indexWriter 


The 3rd point is difficult for me.

I do it to mark duplicated records with flag

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message