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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I search for content properties from the Confluence Server search screen? Edited


I'm trying to reproduce what is being done in this blog post on Confluence Server (this article describes the process required for Confluence Connect):

I've been able to:


What I can't figure out is how to connect these two things together:
how can I search for the content properties from the Confluence Search screen?


Ultimately, I'd like to have an alias for the CQL content property field like in the blog post above (instead of using the "[key].value" syntax).


Here's my atlassian-plugin.xml:

<atlassian-plugin key="${atlassian.plugin.key}" name="${}" plugins-version="2">
        <vendor name="${}" url="${project.organization.url}" />
        <param name="plugin-icon">images/pluginIcon.png</param>
        <param name="plugin-logo">images/pluginLogo.png</param>

    <!-- add our i18n resource -->
    <resource type="i18n" name="i18n" location="search"/>
    <!-- add our web resources -->
    <web-resource key="search-resources" name="search Web Resources">
        <resource type="download" name="search.css" location="/css/search.css"/>
        <resource type="download" name="search.js" location="/js/search.js"/>
        <resource type="download" name="images/" location="/images"/>


    <content-property-index-schema key="mxdoc-schema-module-key">
        <key property-key="mxdoc">
            <extract path="fileid" type="number"/>

    <cql-query-field fieldName="fileid" key="mxdoc-fileid-field"
                     name="FileID" class="">
        <ui-support value-type="number" i18n-key="cql.field.fileid"/>




Here's the Java code I've written so far (I'm not sure how to reference content properties from within the plugin code):

public class FileIdHandler extends BaseFieldHandler implements NumericFieldHandler<V2SearchQueryWrapper> {

    private static final String FILEID_FIELD = "fileid";

    public FileIdHandler() {
        super(FILEID_FIELD, true);

    public V2SearchQueryWrapper build(RangeExpressionData rangeExpressionData, String value) {

        return wrapV2Search(new TermQuery(FILEID_FIELD, value), rangeExpressionData);




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence Cloud

Please tell us how you use Confluence space settings

👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...

183 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you