The Backlink feature has stopped working on my Wiki.
Here’s a small example: These two pages link each other, but show no backlinks and moving one page breaks the link on the other:
The links are proper doc: links created with the WYSIWG editor.
This Problem persists on my Production Wiki, which is on 14.10.4 and the QA Wiki which is on 15.5. It affects all pages. Backlinks are turned on in both instances and running $xwiki.refreshLinks() hasn’t changed anything.
I also checked the Database, the xwikilinks Table is fully populated and when I import the pages of the production wiki to a fresh container on my local machine the preexisting backlinks work aswell. This issue is completely puzzling to me.
I can confirm the exact same behavior in our wikis (multiple stages). We are running v14.10.4 in production currently and v15.5.1 in the other stages. The xwikilinks table is also fully populated, while no backlinks are displayed in the UI.
To troubleshoot this issue, I’ve also temporarily switched the search engine from Solr to database without any change in behavior. Reindexing Solr also does not yield any positive results. The issue also occurs in the main wiki as well as additional sub-wikis, both with local and global links.
If anyone has found a solution to this issue, I’d appreciate any tips.
For anyone running into the same issue, we found the culprit after quite a bit of searching. The issue was caused by an incomplete update where the XWiki itself was updated, but Solr (or better the core schema) was not. To fix the issue, we simply purged our Solr and reinitialized it with the core schemas for the new XWiki version. We then restarted XWiki and started the reindexing process.
Background: somewhere between XWiki 14.4 and 14.10 must have been a change that moved some logic (especially regarding the backlinks) from the database into Solr (I think it was 14.8, but not sure). The database still contains all the backlinks and replicating them into Solr is not an issue; however, without the required fields in the Solr schema, the backlinks are simply not indexed and cannot be found later on.