Re: Updating document with IndexWriter#updateDocument doesn't seem to take effect

2024-08-09 Thread Michael Froh
Hi Wojtek, Thank you for linking to your test code! When you open an IndexReader, it is locked to the view of the Lucene directory at the time that it's opened. If you make changes, you'll need to open a new IndexReader before those changes are visible. I see that you tried creating a new IndexS

Updating document with IndexWriter#updateDocument doesn't seem to take effect

2024-08-09 Thread Wojtek
Hi all! There is an effort in Apache James to update to a more modern version of Lucene (ref: https://github.com/apache/james-project/pull/2342). I'm digging into the issue as other have done but I'm stumped - it seems that `org.apache.lucene.index.IndexWriter#updateDocument` doesn't update th