lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Lucene loosing documents?
Date Thu, 28 Apr 2005 21:19:04 GMT
Can you close the ramDirectory first and then add it via fsWriter and
see if that solves it?

Otis

--- Mufaddal Khumri <MKhumri@allegromedical.com> wrote:
> Hi,
> 
> I am trying to index 20349 records. When I index using the
> FSDirectory I
> get 20349 documents - this is correct. Now when I ude the
> RAMDirectory
> to create my index and write all documents from the RAMDirectory to
> the
> FSDirectory I only get 20340 documents consistently. This is the only
> change I made. Why do I loose 9 documents?
> 
> int counter = 1;
> while(counter <= 20349)
> {
> 	ramWriter.addDocument(doc);
> }
> 
> Directory d[] = {ramDir};
> fsWriter.addIndexes(d);
> fsWriter.optimize();
> ramWriter.close();
> 
> fsWriter.close();
> 
> Any ideas as to why I am missing the 9 documents?
> 
> Thanks.
> 
>
------------------------------------------------------------------------------------------
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity 
> to whom they are addressed. If you have received this 
> email in error please notify the system manager. Please
> note that any views or opinions presented in this email 
> are solely those of the author and do not necessarily
> represent those of the company. Finally, the recipient
> should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for
> any damage caused by any virus transmitted by this email.
> Consult your physician prior to the use of any medical
> supplies or product.
>
------------------------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message