Recently Updated is empty and search is broken due to LuceneMapperNotFoundException

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

Problem

The Recently Updated Macro is empty even after How to Rebuild the Content Indexes From Scratch on Unclustered Confluence. Searching returns a System Error page with the following stack trace:

1 2 3 4 5 6 7 com.atlassian.confluence.search.v2.lucene.LuceneMapperNotFoundException: A lucene mapper could not be found to map an object of type: com.atlassian.confluence.search.v2.SearchQuery and key: textField at com.atlassian.confluence.search.v2.lucene.DelegatingLuceneSearchMapper.convertToLuceneQuery(DelegatingLuceneSearchMapper.java:28) at com.atlassian.confluence.search.actions.SearchSiteAction.validate(SearchSiteAction.java:157) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:44) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) ...

Each time Confluence restarts, this warning appears in the log:

1 2010-08-25 22:21:17,428 WARN [main] [atlassian.plugin.manager.DefaultPluginManager] addPlugins System plugin is disabled: confluence.search.mappers.lucene

The following appears in the atlassian-confluence.log:

1 2010-08-25 22:29:58,964 WARN [http-8331-1] [v2.lucene.compatibility.V2SearchSmartListManager] getListQueryResults Could not perform search produced by ListQueryToSearchConverter.

Cause

The system plugin that handles the index mapping (confluence.search.mappers.lucene) is disabled. To verify, run the following query against your database:

1 select * from BANDANA where BANDANAKEY='plugin.manager.state.Map';

This will return a value like:

1 2 3 4 5 6 7 8 <map> ... <entry> <string>confluence.search.mappers.lucene</string> <boolean>false</boolean> </entry> ... </map>

Resolution

Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

  1. Remove the following entry from the results above and retain the rest:

    1 2 3 4 <entry> <string>confluence.search.mappers.lucene</string> <boolean>false</boolean> </entry>
  2. To perform this, use this SQL query:

    1 2 3 4 5 update BANDANA set BANDANAVALUE='<map> <your other XML> </map>' where BANDANAKEY='plugin.manager.state.Map';
  3. Restart Confluence after this modification.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.