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

It's possible to get twice the same document entry in Solr when the default locale changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 17.8.0-rc-1
    • 5.1-milestone-2
    • Search - Solr
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      The entry id in Solr is based on the document default locale, meaning that if you change the default locale, the document id on solr side changes...

      Problem is that the code which trigger an index of the document when receiving a document updated event assume the id is a lot more stable (i.e. that the solr index is not nonsense...).

      We should ideally fix how Solr is indexed to use the locale (so an empty string) instead of the default locale.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: