Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I disable the default search renderer in the search box in Confluence?

Mihaela Ogrezeanu July 17, 2012

I am trying to follow the tutorial for writing my own search result renderer but I can`t seem to be able to disable the bundled search renderer and use mine.

I disabled the Image SearchResult Renderer in System Plugins from Confluence Admin -> Plugins but it still doesn`t use my renderer.

5 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Tim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2014

How do I write a Custom SearchResultRenderer for Confluence 5.4.x? The tutorial is only available from cache and way outdated. How to disable the bundled renderer, when Confluence is not picking up my custom one?

0 votes
Ma Hao October 13, 2013

have you fixed the problem?

0 votes
Jana Volkmer September 12, 2012

The basic problem is, that the ImageSearchResultRenderer is called before the custom renderer developed in the tutorial: https://developer.atlassian.com/display/CONFDEV/Writing+a+Search+Result+Renderer

Is there a way to f.e. just switch the order of loading plugins via priorities or something like that?

0 votes
Adrian Terwedow September 12, 2012

The proplem is neither the canRender method inside nore the plugin setting itself.

The problem is that, in the list of available renderers thats worked down by the DelegatedSearchResultRenderer, the built in "Image Searchresult Renderer" is on the topmost position and catches all searchresult for graphics, before any userplugin can do this job.

The tutorial should be extended with information on how and where to disable the built in "Image SearchResult Renderer".

Strange is, that other system renderers are below the userplugin and that there is no possibility to set a plugins priority (system=true in descriptor won't help).

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 23, 2012

Disabling the "Image Searchresult Render" plugin definitely disables that renderer from working. You can ensure that this is true by disabling it and then doing a search that returns images - the image thumbnails will no longer be rendered.

Here are some things you can check to try and identify why your search result renderer is not working:

1) Ensure that your plugin and all its modules are listed as enabled in Confluence Admin -> Plugins

2) What are you doing in the canRender(SearchResult) method? Try temporarily setting it to "return true" for everything in order to ensure that it works.

3) Add logging statements when your search result renderer is constructed and invoked, and see if the log messages are actually generated.

If you have any follow-up information we can use to troubleshoot further, please add it here.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events