Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
1.12.0
-
None
Description
When removing translation from a Content Item the solr index is not updated and still returns the old results.
Setup:
1. eZ Platform using Solr as search engine
2. Custom commands to query Solr index and delete translation available (added in attachment)
3. Setup with at least two languages. For example: eng-GB and fre-FR
Steps to reproduce:
1. Create an Article (fill "ArticleTest" in required fields) and publish.
2. Translate the article to French (change all fields to "ArticleTestFrench") and publish
3. Check the Content ID of the added item and then remove it using command:
php app/console testSystem:ezp27417:deleteTranslations %CONTENT_ID fre-FR
Note: remember about exporting SYMFONY_ENV, for example
export SYMFONY_ENV=prod
4. Search for the removed translation:
php app/console testSystem:ezp27417:searchQuery ArticleTestFrench fre-FR
Expected result:
Empty result set is returned
Actual result:
Exception:
[eZ\Publish\Core\Base\Exceptions\NotFoundException] Could not find 'Content' with identifier 'array ( 'id' => 60, 'languages' => array ( 0 => 'fre-FR', ), 'versionNo' => 2, )' [eZ\Publish\Core\Base\Exceptions\NotFoundException] Could not find 'content' with identifier 'contentId: 60, versionNo: 2'
The used commands are available as an attachment to this ticket. In this case you can add your own bundle using:
php app/console generate:bundle --namespace=EzSystems/Ezp27417Bundle --dir=src --format=yml --no-interaction
Attachments
Issue Links
- relates to
-
EZP-27712 As a Developer I want Search to handle RemoveTranslationSignal
- Closed