I have deleted one of the text files I indexed and did the following command:

java -Dlog4j.configuration=file:///c:/jarfiles/log4j.properties
-Dlog4j.debug=true org.pdfbox.searchengine.lucene.IndexFiles -index c:\\index ..
root=..
java.io.IOException: Lock obtain timed out
        at org.apache.lucene.store.Lock.obtain(Lock.java:97)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:173)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:151)
        at org.pdfbox.searchengine.lucene.IndexFiles.index(IndexFiles.java:158)
        at org.pdfbox.searchengine.lucene.IndexFiles.main(IndexFiles.java:141)

I used the IndexFiles.java in PDFBox and I got the error msg mentioned above but
if I used the IndexFiles in Lucene, it is working fine.

Anyone can help?

-----Original Message-----
From: Daniel Naber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2003 7:39 PM
To: Tun Lin
Subject: Re: Lucene refresh index function (incremental indexing).

Am Mittwoch, 26. November 2003 04:38 schrieb Tun Lin:

> When I integrate with PDFBox, I cannot update, delete or change the 
> filename anymore. If I did any of the above, I will get a message: 
> Lock obtain timed out.

I think you have to make sure that IndexReader and IndexWriter are not open at
the same time, as they will block each other.

Regards
 Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to