Arsnael commented on PR #2342: URL: https://github.com/apache/james-project/pull/2342#issuecomment-2230541349
Pushing the debugging further... I modified the search test to: - append 4 messages - store Flagged flag on message 3 and 4 - search messages with Flagged - search unflagged messages Fails on last step where it returns all messages. By modifying the code in the search query for flags instead of doing a not flags, I did a search on all documents with flags. Returns 6 documents (and not 4). The original 4 plus the 2 extra that were created when adding the Flagged flag. Where I'm confused is that according to the lucene doc, the updateDocument method is supposed to delete the current doc and then create a new one. Or here it's obvious the old one does not get deleted. Why? Need to search more. Maybe there is an other way to do an update in recent lucene? Maybe a bug? Maybe the delete is async?... I might try as well just deleting and adding the document -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
