> I don't think it really matters wether you do deletes on the same > IndexReader -- what matters is if there has been any deletes > done to the > index prior to opening the reader since it was last > optimized. The reason > being that deleting a document just causes a record of the > deletion to be > made, but no Term/DOc mapping information is removed. > > So if your index is read only and will never contain any deleted > documents, then your method may be safe (i'm not 100% certain of that, > just guessing) but if it's possible for documents to be > deleted from your > index at some point, then i'm 99% sure your approach will result it > indicating matches on documents which are no longer "viable"
OK. I will also add the check for deleted documents. It didn't have much of an effect on the performance anyway. Thanks. Johan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]