Hello All,
I’ve been working hard to get the search decorator running on our Confluence instances (8.5.9 and 9.2.7). Unfortunately, the tutorial Create a search decorator is pretty outdated(it was last tested with Confluence 7.0 and Atlassian SDK 8.0.2), and I’ve run into an odd duplication issue.
When I navigate to our space directory, every space appears twice. In basic search, some results also show duplicates. These aren’t actual duplicates — the “extra” entries still point to the same space/page IDs as the originals. Strangely, the code works fine in my local environment but not on our production Confluence instances.
For troubleshooting, I’ve already tried:
-
Reindexing the entire Confluence instance
-
Disabling all other plugins
-
Ensuring the correct Java version (currently running on 17)
-
Removing silently deprecated methods (
getSearchFilter(),getResultFilter())
The duplication still persists, and I haven’t found any other resources on this issue… Since it falls outside Atlassian’s support coverage, I’m hoping some of the experts here can share their insights. Any small pointer would be greatly appreciated!