Re: IOException IndexReader out of date

2005-07-07 Thread Dirk Hennig
Volodymyr Bychkoviak wrote: method open is static method wich returns new indexReader. maybe this is the problem. I did not see the wood for the trees! That's it! The correct program looks like this: - indexReader = IndexReade

Re: IOException IndexReader out of date

2005-07-07 Thread Volodymyr Bychkoviak
Dirk Hennig wrote: Volodymyr Bychkoviak wrote: the problem is than index was modified between indexReader.open(index); and indexReader.delete(hitId); method calls. That would explain the exception. But How? it can be modified by another indexReader or indexWriter. The program is exactl

Re: IOException IndexReader out of date

2005-07-07 Thread Dirk Hennig
Volodymyr Bychkoviak wrote: the problem is than index was modified between indexReader.open(index); and indexReader.delete(hitId); method calls. That would explain the exception. But How? The program is exactly as I wrote it! --

Re: IOException IndexReader out of date

2005-07-07 Thread Volodymyr Bychkoviak
the problem is than index was modified between indexReader.open(index); and indexReader.delete(hitId); method calls. regards, Volodymyr Bychkoviak Dirk Hennig wrote: Hallo, When I try to use this to remove several documents from the index -