lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Mokotov" ...@mokotov.org>
Subject RE: tf=0 while lucene is finding matches?
Date Tue, 24 May 2005 15:13:13 GMT
Wrap the writing code in a 
try{ 
 ...
}finally{
...
} 
and on the finally close the writer (and maybe even optimize).

-----Original Message-----
From: Santanu Dutta [mailto:santanud@cybage.com] 
Sent: Tuesday, May 24, 2005 4:08 PM
To: java-user@lucene.apache.org
Cc: stever@opin.com
Subject: RE: tf=0 while lucene is finding matches?


Hi All

java.io.IOException: Lock obtain timed out:
Lock@C:\WINNT\TEMP\lucene-4bf302dec76f27bff81fc3dd3118abbb-write.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:58)

Sometimes it happens and it again start working if I remove the lock file
from the temp directory. I didn't get any permanent solution. Sometimes it
corrupts the index itself. So can anybody provide some solution for this?

Santanu


---------------------------------------------------------------------
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