-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-24212: Translations are not deleted from Solr index #192
base: master
Are you sure you want to change the base?
Conversation
Isn't it another limitation that needs to be to be taken care of with a cronjob (for performance issues). like the case we have in : https://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/eZ-Find-LS-5.2.0/Basic-Configuration/Updating-the-search-index |
@yannickroger i don't think so. imho leaving this to cron wouldn't fix this issue. or is delete of objects performer before the update in the ezfind cron? Actually we have it set to true in the provided ezsearchengine... https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/search/plugins/ezsearchengine/ezsearchengine.php#L39 |
gentle ping @yannickroger @andrerom @bdunogier @paulborgermans |
I'm not the one to review this @crevillo, @yannickroger and @paulborgermans are the main pings here. |
Is this for translations of one content, or site languages in general ? If languages in general, we'd do that when we remove a language, period. It's not a daily task, and I'd really really rather not do something on every update to cover a development / maintenance event. For this, we could maybe use an ezpEvent instead ? If it's about a content's languages, it's not as bad, but... |
@bdunogier it is for translation in one content. is going for translations tab of content view in the admin interface and delete one (or several) of it. i agree that changing that needRemoveWithUpdate to true is not the best option. but on the other said i truly believe that when a translation is deleted solr index should note. Not a daily task but not a daily task to delete a published content, don't you think? So, my proposal here is to have operations that doesn't need that remove with the update and some others that true for that i will (maybe) go for redifining the registerSearchObject function, something like... Then, change that this way we could decide if we need to remove before update per operation and not per search engine... |
One more of those... we should have added an options array ;-) The approach sounds sane. |
what bothers me is in order to keep bc, as said, provided ezsearchengine has that needRemoveWithUpdate set to true https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/search/plugins/ezsearchengine/ezsearchengine.php#L39 so, could we go for something like |
Fixes https://jira.ez.no/browse/EZP-24212
See the issue in jira for detailed info. Basically the thing is when you delete a translation from the admin interface, that translation remains in the solr index.
The fix i'm proposing is merely a workaround to solve this problem, but to me this probably needs some re-thinking. Actually we are defining when we need to remove the object from the index when update a content at search engine level. But actually we can see that some operations may need removal and some others not.
So, i'm thinking if we should move this needRemoveWithUpdate logic to somewhere else and let the operations decide when is needed to delete before update or not
Thoughts?