Automatic indexing not working

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

  1. Automatic indexing is not working

  2. Recently added content will not appear in search results AND/OR activity stream

  3. Attachment indexing might fail as well

The following appears in the atlassian-confluence.log

1 2 3 4 5 2015-10-09 12:09:32,443 ERROR [Indexer: 1] [confluence.search.lucene.ReindexWorkBatch] indexCollection Exception indexing document with id: 7143782 -- referer: http://confluence.XXXXX.com/admin/search-indexes.action | url: /admin/reindex.action | userName: XXX | action: reindex java.lang.IllegalArgumentException: searchable: Attachment: test.xls v.1 (14419104) <user_name> is not supported: Attachments with minor edit set to true are not accounted for in the change index at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47) at com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133)

Diagnosis

Environment

  • Check if the allocated heap is around 1 GB i.e. Xmx is around 1GB size in the setenv.sh/setenv.bat

Cause

This is caused because the allocated heap is not sufficient for the indexing scheduler and the scheduler does not index Confluence

Note: There won't be any out of memory errors.

Solution

Workaround

Increase the heap memory as per the size of the instance.

Please refer the Server hardware requirements guide

Updated on April 7, 2025

Still need help?

The Atlassian Community is here for you.