lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Calvo" <>
Subject problem with last patch (obtain write.lock while deleting documents)
Date Sat, 09 Feb 2002 22:43:19 GMT

I've just updated to the latest version (to get the fix for the NullPointerException with
some phrase queries) and now I'm having
problems with document deletion. I'm trying to delete a document using delete(Term) and I'm
getting an IOException: Index locked for write: Lock@E:\temp\index\write.lock
	at org.apache.lucene.index.IndexReader.delete(Unknown Source)
	at org.apache.lucene.index.SegmentsReader.doDelete(Unknown Source)
	at org.apache.lucene.index.IndexReader.delete(Unknown Source)
	at org.apache.lucene.index.IndexReader.delete(Unknown Source)

Here's what I'm doing:
  IndexReader reader =;
  reader.delete(new Term("fileid", id));

I've taken a look at the sources but couldn't find anything wrong. Any ideas?
BTW, when performing this deletion there's no index writer opened; I assume the writer lock
is being created by the IndexReader when
executing delete(numDoc).




To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message