Hi My suggestion
U should have a Common coloum which stores Unique Identity of the Data being Index. ex - Name+Date of Record This helps in replacing the duplicates with latest by using TermQuery search /Replace process. This also helps in Maintaining unique record List with out duplicates with regars' karthik On Thu, Dec 29, 2011 at 9:56 PM, Cheng <zhoucheng2...@gmail.com> wrote: > Hi, > > I need to save a list of records into an index on hard drive. I keep a > writer and a reader open till the end of the operation. > > My issue is that I need to compare each of the new records with each of the > records that have been saved into the index. There are plenty of duplicate > records in the original list. > > To my surprise, I can't find a hit for a duplicate record on the fly > although I use the writer.commit() for every record that were being saved. > > However, if I intentionally stopped the operations (some of the records > being saved), I re-ran the list of records and lots of hits occurs. > > Please help! > > Thanks! > -- *N.S.KARTHIK R.M.S.COLONY BEHIND BANK OF INDIA R.M.V 2ND STAGE BANGALORE 560094*