lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: FileNotFoundException during indexing
Date Sun, 03 Aug 2008 09:33:17 GMT

Wojtek212 wrote:

> You were right I had 2 IndexWriters. I've checked again and it  
> turned out I
> had 2 IndexManagers loaded by  2 different classloaders, so even if  
> stored
> it in static Map, it didn't help.

Phew!  That's tricky (two different classloaders).  Good sleuthing

> Anyway thanks for help.

You're welcome!

> But I have last question. Is it correct if I use
> IndexSearcher during wrking IndexWriter? Or should these operations be
> synchronized?

It's fine to use these two at once.  IndexSearcher will search the  
point-in-time snapshot as of when it was opened, so it will see none  
of the changes done by IndexWriter until you reopen it.


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

View raw message