This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b41ca8f5-01e1-4ced-a33b-9ba2f013fe90 XWIKI-23494 In Progress

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-13ee8a7a-bfd1-46e0-b79c-684a68fdb75b Thomas Mortagne created this issue on 29/Aug/25 15:56
 
Summary: It's possible to get twice the same document entry in Solr
Issue Type: cid:jira-generated-image-avatar-b41ca8f5-01e1-4ced-a33b-9ba2f013fe90 Bug
Affects Versions: 17.7.0
Assignee: Unassigned
Components: Search - Solr
Created: 29/Aug/25 15:56
Priority: cid:jira-generated-image-static-major-17a68177-a05a-4437-b8fb-6e55f4bcfd87 Major
Reporter: Thomas Mortagne
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.

 
 

6 updates

 
cid:jira-generated-image-avatar-13ee8a7a-bfd1-46e0-b79c-684a68fdb75b Changes by Thomas Mortagne on 29/Aug/25 15:56
 
Summary: It's possible to get twice the same document entry in Solr when the default locale changes
Fix Version: 17.8.0-rc-1
Version: 5.1-milestone-2
Version: 17.7.0
Assignee: Thomas Mortagne
Status: Open In Progress