ext-solr icon indicating copy to clipboard operation
ext-solr copied to clipboard

Already indexed record translations are not removed from Solr Core after hiding them in TYPO3

Open des-jender opened this issue 3 years ago • 4 comments

Describe the bug If you have a record in the default language and translate it into a different language. Both get indexed fine.

If you then hide only the translation, it doesn't get removed from the respective Solr Core anymore. Even if you change and reindex default language.

Only it the default language gets hidden the record gets removed from all Solr Cores

To Reproduce Steps to reproduce the behavior:

  1. Setup a TYPO3 with at least two sys_languages
  2. Setup two Solr Cores and configure TYPO3 to use a different one for each sys_language
  3. Create a record (e.g. news) in the default language
  4. Translate the record into a different language
  5. Index both records into their respective Cores.
  6. Hide only the translation
  7. Change something in the default translation or queue the record manually
  8. Run the indexer TASK again
  9. Translated record is still in the Core and will still be shown in search requests

Expected behavior The record of the default language should remain in the Core and the translated record should get removed form the Core.

Used versions (please complete the following information):

  • TYPO3 Version: 9.5
  • EXT:solr Version: 10.0.1
  • Used Apache Solr Version: 8.2.0

des-jender avatar Aug 05 '21 14:08 des-jender

@des-jender thanks for reporting. Could you please try EXT:Solr v 10.0.4 and dev state of release-10.0.x branch?

dkd-kaehm avatar Aug 09 '21 08:08 dkd-kaehm

@dkd-kaehm I tried both branches, but neither fixes the Bug.

des-jender avatar Aug 09 '21 14:08 des-jender

To Reproduce

Steps to reproduce the behavior:

  • Setup a TYPO3 with at least 4 sys_languages
    • sys_language_uid=0 DE (Default)
    • sys_language_uid=1 EN (fallbackType=strict)
    • sys_language_uid=2 FR (fallbackType=free)
    • sys_language_uid=3 ES (fallbackType=fallback)
  • Create a News list with the News List Plugin
  • Create a Search Plugin (solr_pi_results) with a filter for News and no Form to enter a search-term
  • Creata a row of Dummy news
    • News in Default, not translated
    • News in Default and translated to all languages
    • News in Default, translated, translation hidden
    • News only in EN, FR, ES but not in Default
    • News in Default, translated, only in Default hidden

Expected behavior

The list generated by the news plugin and the search plugin should show the same results, not in the same order of course, but the TYPO3 fallbackType and hidden/start/stop/deleted should be respected.

Describe the bug

I'm not sure if this is 1 or 2 bugs.

  1. hidden/start/stop/deleted should be respected. When you "clear index queue" and then initialize a new queue, then you get hidden records in you search result list.
  2. in all 3 fallbackType you get results that should not show up.

We can meet in Slack and I can share my screen if that would help.

Used versions

  • TYPO3 Version: 10.4.6
  • Browser: Chrome, Firefox
  • EXT:solr Version: 11.1.1 (I tried 11.0.0 to 11.1.1)
  • Used Apache Solr Version: typo3solr/ext-solr:11.0.3
  • PHP Version: 7.2 (update coming soon to latest 7)
  • MariaDB Version: 10.1.48
grafik

nito-web avatar Aug 30 '21 15:08 nito-web

In our case, translations are always indexed even if they have never been enabled. Moreover, an enabled translation with its default language disabled is not indexed. It seems that only the default language properties are checked which is not correct.

cjanody avatar Nov 02 '21 14:11 cjanody