There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3c59a135-62be-427f-be40-9882fabbe663 XWIKI-22605 Open

Solr re-indexes many documents after restarting on PostgreSQL

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-0da2a04a-0193-4a4d-a06c-08142826b21c Michael Hamann on 24/Oct/24 19:00
 
The sorting issue is caused by the locale of the database. This locale isn't set in XWiki, it needs to be specified when creating the database. I've updated the instructions on [https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationPostgreSQL/] to create databases with the correct encoding.

Using the locale "C" or "C.UTF-8" works. "C.UTF-8" seems better in the sense that it also supports uppercase/lowercase transformations for non-ASCII characters.

Unfortunately, the locale cannot be changed after the database has been created. Therefore, the only fix for existing installations is to dump and re-create the database.

Things to check and do:
#
(Done, settings updated) Can/do we set the correct locale for integration tests, also to verify that everything works correctly with the recommended locale?
# Can we make sure that the Debian package creates the database with the correct locale?
# Update the instructions in the Docker README.