This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant version.

Confluence Search Syntax

All Versions
Click for all versions
Confluence 2.9 Documentation

Index

Here's how you can refine your search. Confluence will ignore common words like "the" unless you place your query within quotes.

Exact phrase search

To search for content that contains the exact phrase "chalk and cheese"

"chalk and cheese"

Or Search

To search for content that contains one of the terms, "chalk" OR "cheese"

chalk OR cheese

And Search

To search for content that contains both the terms "chalk" AND "cheese"

chalk AND cheese

Not search

To search for content that contains "chalk" but NOT "cheese"

chalk NOT cheese

Excluded Term search

Similar to the NOT search, to search for content that contains "chalk" and "butter" but NOT "cheese"

chalk butter -cheese

Grouping Search

To search for content that MUST contain "chalk" but CAN contain either "cheese" or "butter" use the search:

(cheese OR butter) AND chalk

Title Search

To search for content with "chalk" in its title, where title is the field keyword.

title:chalk

Wild card searches

Single character

To search for "butter" or "batter" you can use the search:

b?tter

To search for "chicken" or "chickpea" you can use the search:
chick*

Wildcards can be used anywhere within a word, except at the very beginning.
For example:
*chick

is an invalid search term.
 
Multiple characters

To search for "chick" or "chickpea":

c*c*

You can also combine search characters to get the exact word. For example the search term below will return "chick" yet not "chickpea":

c*c?

Proximity searches

This search ensure that the two words specified must be within a certain number of words of each other to be included.

"octagon post"~1

will return "Octagon blog post".

"octagon post"~0

is an invalid search term.

Range search

Searches for names that fall alphabetically within the specifed range.

[adam to ben]

Note: You can't use the AND keyword inside this statement.

Fuzzy search

This search looks for words spelled similarly.

To search for octagon, if unsure about spelling:

octogan~

will correctly return "octagon"
 

Combined search

You can also combine various search terms together:

o?tag* AND past~ AND ("blog" AND "post")



RELATED TOPICS

Searching Confluence
Confluence Search Fields

Take me back to Confluence User Guide

Labels:

search search Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Nov 07, 2006

    Gary Pullis says:

    I've noticed that + seems to work too. AFAIK... Unknown macro: {nofofmat} chalk ...

    I've noticed that + seems to work too. AFAIK...

    Unknown macro: {nofofmat}
    chalk AND cheeze
    and
    
    +chalk +cheeze
    
    

    get you the same results.

  2. Nov 07, 2006

    Gary Pullis says:

    Sorry about that. I meant to say... I've noticed that + seems to work too. AFAIK...

    Sorry about that. I meant to say...
    I've noticed that + seems to work too. AFAIK...

    chalk AND cheeze

    and

    +chalk +cheeze

    get you the same results.

    Gotta remember to hit that preview button before posting.

  3. Jan 30, 2007

    P. Payette says:

    If wildcards are invalid at the beginning of the string, how can I sea...

    If wildcards are invalid at the beginning of the string, how can I search for *@domain.com ?
    This would be useful to regroup emails coming from a particular source or client.

  4. Feb 04, 2008

    Roy Hartono says:

    I found that underscore works the same as quotations. So if I am searching for t...

    I found that underscore works the same as quotations.
    So if I am searching for the exact phrase for:

    "How do I disable indexing of attachments"
    

    The following:

    How_do_I_disable_indexing_of_attachments
    

    would return the same result.

  5. Apr 09, 2008

    Ankur Ojha says:

    Hi, If I have a text on pages for e.g. tag1 this is some temp data tag1-end t...

    Hi,

    If I have a text on pages for e.g.

    tag1 this is some temp data tag1-end
    tag2 this is some test data tag2-end
    tag3 and this is dummy data tag3-end

    and I want to searxh for "temp" which which lies between tag1 & tag1-end, what would be the query syntax ?

    Something like : contentBody:"tag1*temp*tag1-end" ???

    Thnx

    1. Apr 10, 2008

      Mei Yan Chan says:

      Hi Ankur, Lucene will basically consider this, tag1*temp*tag1-end, as a full te...

      Hi Ankur,

      Lucene will basically consider this, tag1*temp*tag1-end, as a full text and does not consider on other random characters. On the other hand, if you were to remove the quote, the hyphen from tag1-end, will be tokenized, hence, displaying results from pages consisting of tag1 and end as well.

      Regards,
      Mei

  6. Jul 01

    Rosie Piller says:

    Hi, Noticed a couple of typos on this (otherwise excellent) wiki page, plu...

    Hi,

    Noticed a couple of typos on this (otherwise excellent) wiki page, plus I had a question about usage.

    First, notice the typo serch just ahead of the other typo, Mutliple, in Mutliple characters on this wiki page.

    Also, regarding the following:

    You can also combine search characters to get the exact word. For example the search term below will return "chic" yet not "chickpea":

    c*c?

    So does ? stand in for a single character but include no characters? I'm having mixed results. For example, I tried:

    version?

    and

    JIRA?

    and am getting far fewer results than I expect (based on previous searches).

    Thanks, and don't forget about those typos!  

    Rosie

    1. Jul 01

      Sarah Maddox says:

      Hallo Rosie Thank you for pointing out the typos. I've fixed them. I hope someo...

      Hallo Rosie

      Thank you for pointing out the typos. I've fixed them. I hope someone else will pick up on your questions

      Cheers — Sarah

    2. Jul 07

      Azwandi Mohd Aris says:

      Hi Rosie, I believe the "?" character represents a single character, hence the ...

      Hi Rosie,

      I believe the "?" character represents a single character, hence the line that reads

      ..."chic" yet not "chickpea"
      should be read as
      ..."chick" yet not "chickpea"

      I have made the changes to this page. Thank you for pointing that out.

      Cheers,
      Azwandi

  7. Jul 04

    Andreas Ringdal says:

    Is it possible to run a pure date search.  I want to list all modified doc...

    Is it possible to run a pure date search.

     I want to list all modified documents within the last week.

    Andreas

    1. Jul 07

      Ming Giet Chong says:

      Hi Andreas, Currently, Confluence doesn't supported this feature. However, ther...

      Hi Andreas,

      Currently, Confluence doesn't supported this feature. However, there are few similar feature requests being raised at:

      Please cast your vote and add yourself as a watcher for future updates to the reported request. Thanks.

      Regards,
      MG

  8. Aug 02

    Anonymous says:

    Search by "user" or "author" How do I search by "user" or "author" Can't find i...

    Search by "user" or "author"

    How do I search by "user" or "author"

    Can't find it. I would like to know who authored what quickly.

    Please let me know by emailing to gchutrau@gmail.com

    Thank you

    1. Aug 04

      Azwandi Mohd Aris says:

      Hi there, There is an improvement request at CONF-2328 to cater this requiremen...

      Hi there,

      There is an improvement request at CONF-2328 to cater this requirement. Please note that this has been implemented in Confluence version 2.9, which is scheduled to be released in the near future. Hope this helps.

      Cheers,
      Azwandi

  9. Aug 13

    James Kulbach says:

    I have a user who has created pages with user defined fields with label in one f...

    I have a user who has created pages with user defined fields with label in one field, and the value in the next field, e.g. Colour and Size.
    We're trying to figure out how to do a search to return Colour = Blue and Size = Large.

    Any help would be greatly appreciated.

    1. Aug 18

      Tony Cheah Tong Nyee says:

      Hi James, Confluence data is stored in fields which can be specified in the sea...

      Hi James,

      Confluence data is stored in fields which can be specified in the search. To search a specific field, type the name of the field followed by a colon ':' and then the term you are looking for.For instance, if you are searching for the label with Blank and label with Green, you can try this :

      • labelText:Black AND labelText:Green

      For more information about Confluence search Fields, please see:

      Regards,
      Tony

  10. Aug 22

    Hamish Willee says:

    Hi How do I search against a date? Specifically I'm trying to do this in an ad...

    Hi

    How do I search against a date?

    Specifically I'm trying to do this in an advanced search field, but can't work it out on standard search either

    What I want to do is created date > something

    ie created: >"29 Jul 2008"

    Regards

    H

    1. Aug 28

      Ming Giet Chong says:

      Hi Hamish, This feature is not supported in Confluence currently. However, ther...

      Hi Hamish,

      This feature is not supported in Confluence currently. However, there is a similar feature request being raised at:

      Please cast your vote and add yourself as a watcher for future updates to the reported request. Thanks.

      Regards,
      MG

Add Comment