s.grinovero wrote:
Hi,
how are you removing the entities from your database?
Nobody ever complained about this and I couldn't find a matching issue since version 3.0.1.
Thanks for the quick answer!
And sorry, I meant one database row not entity. I haven't used english with database related things in a while so sorry for the mistake :). So I'm only removing rows from the db but those rows still stay in index after re-indexing and optimize. The db contains a bit less than 10000 rows currently.
Quote:
how do you know this? did you check with Luke or an external program, or through the same application which prepared the index? This could affect it, as some file references could still exist on disk but being ignored by the open Lucene engine.
Yes, I use Luke to check the index. And when using the application, the search finds several matches but some of them doesn't exist anymore. Currently I use different application for the indexing and searching the index. Naturally the hibernate conf is exatctly the same. I used to use the same application for indexing and searching. So currently it is possible that the search finds several hits, but in fact only one of those hits still exist in the db.
Quote:
In version 3.1.0 a lot of improvements were introduced, could you try that?
You will need to upgrade hibernate core and annotations to latest too.
Upgrading the Hibernate core could be a pretty big job at this point. I haven't checked what kind of changes I'd have to make so I'm not sure. But I'll have to look into it.