Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12613

Solr doesn't index document translations after they are created on a subwiki

    Details

    • Tests:
      Unit
    • Development Priority:
      High
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Follow these steps to reproduce:

      • Create a subwiki if you don't have one already
      • Make the subwiki multilingual, putting "en,fr" as supported languages
      • With the default language create a new wiki page. I used a terminal page
      • Search for this page using
        id:subwiki\:Space\.Page_*
        

        and removing all filters (selected facet values). You get one result as expected.

      • Translate this page in French
      • Perform the same search again. You get only one result although it should have been two.
      • Edit the French translation and save.
      • Perform the same search again. You now get two results as expected.

      So the document translation is not indexed when it is created (on DocumentCreatedEvent). You need to re-save the translation in order to index it (DocumentUpdatedEvent).

      This doesn't happen on the main wiki.

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: