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.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]