This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-68e73f92-0edd-4cfe-841a-d79888cb5908 XWIKI-25429 Open

The Solr cores are looked up using the major version of the remote Solr server instead of the one they are designed for

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b38232e2-8299-4a12-adf6-a3f9474e8a21 Thomas Mortagne created this issue on 21/Oct/26 09:41
 
Summary: The Solr cores are looked up using the major version of the remote Solr server instead of the one they are designed for
Issue Type: cid:jira-generated-image-avatar-68e73f92-0edd-4cfe-841a-d79888cb5908 Bug
Affects Versions: 18.5.0
Assignee: Unassigned
Components: Search - Solr
Created: 21/Oct/26 09:41
Priority: cid:jira-generated-image-static-major-31f3a324-acb9-4e33-b40c-a78bdc7433bd Major
Reporter: Thomas Mortagne
Description:

The Solr cores used by XWiki are designed for a given major version of Solr (the one XWiki is bundling, currently 9), and named accordingly (xwiki_search_9, etc.). But when using a remote Solr server, the cores are looked up using the major version of that server instead.

With a remote Solr 10 server:

  • XWiki looks for xwiki_search_10 instead of xwiki_search_9.
  • The fallback on the cores designed for the previous major version (added in XWIKI-24326) looks for xwiki_search_10 again, since the suffix of the core name is always computed from the server version, whatever the requested version.
  • So XWiki does not find any of the cores created by the administrator (with the expected _9 suffix), and the search does not work.
  • And when a _10 core exists, it's considered as designed for Solr 10, and XWiki tries to migrate it from the "previous" core, which is resolved to the same _10 core.

The suffix problem also affects the embedded Solr: when XWiki moves to Solr 10, the migration of the cores from Solr 9 would look for the previous _9 core under the _10 name, and the data of the non-cache cores (events, ratings, extension index) would not be migrated.

 
 

3 updates

 
cid:jira-generated-image-avatar-b38232e2-8299-4a12-adf6-a3f9474e8a21 Changes by Thomas Mortagne on 21/Oct/26 09:41
 
Fix Version: 18.10.0-rc-1
Fix Version: 18.9.0
Assignee: Thomas Mortagne