Searching Confluence

While your Confluence installation is growing with content, it will become more difficult to find the information you are looking for using normal navigation. By now, you must have noticed the search box at the navigation bar of Confluence. This box is referred to as the quick search, or quick navigation aid, and that is the feature we are going to cover next.

Quick navigation aid

The quick navigation aid feature automatically offers you a drop-down list of pages, attachments, and user profiles, matched to the title of your search query. This list changes while you are typing your query. You can select one of the suggestions to directly browse to that item.

To use the quick navigation aid, perform the following steps:

  1. Click on the Search box or use the keyboard shortcut /.
  2. Start typing your query. Confluence will give you suggestions based on the title and your query.
  3. Use the up and down arrows on your keyboard to navigate through the suggestions.
  4. Press Enter to open the selected item.
  5. If you don't find the item you are looking for, use the Search for link at the bottom to do a full site search. More about full searches will be discussed in the next section.
    Quick navigation aid

There are some things to know about the quick navigation aid:

  • Confluence will truncate any titles that are too long to be displayed.
  • Items are grouped by their content type. Confluence shows a maximum of six pages / blog posts, two attachments, three people, and two spaces. This way you can easily find the type you want.
  • Items are ordered based on most recent updates.
  • The matching part of the title is displayed in bold.
  • A Confluence administrator can disable the quick navigation aid in the Confluence Administration Console.

Full and advanced search

A full search is a search in all contents in all spaces, global and personal, user profiles and attachments. Confluence will index the contents of your attachments too; the full search will therefore also search within your attachment's content.

To do a full search, perform the following steps:

  1. Use the quick search to type in your query.
  2. Press the Enter key. This means you will ignore any suggestions.
  3. The search screen appears with the results, if any.
  4. Click on an item's title to open the item.
    Full and advanced search

Each item will be represented by its title, a few lines of matching content, the containing space name, or the date the content was last updated. For attachments, there will be the size and a download link.

On the right-hand side of the screen, there are more options to filter your research; this is explained further on.

"Did you mean"

When you perform a full search, Confluence may offer you an alternative spelling of your search query. This alternative spelling will appear next to the words Did you mean. Click on the link to accept the suggestion. Some of the key features offered with this functionality are as follows:

  • Confluence uses a bundled dictionary and words gathered from your own content. This means Confluence can make suggestions for your own jargon that may not appear in a standard dictionary.
  • Confluence will favor words that appear more often in your content before words from the dictionary.
  • Confluence may offer suggestions with incorrect spellings. This happens when the incorrect spelling occurs many times within your content. This is intentionally as the purpose of the "Did you mean" feature is to help find your content, not to correct your spelling.
  • A Confluence administrator has to turn on the "Did you mean" index in the Administration Console.

Filtering results

The search screen, as shown on the previous page, appears when you do your first search. By default, Confluence will search all content in all spaces and attachments. You can filter this using the filter options on the right side of the screen.

Using the filter options, you can filter results based on the following categories:

  • Where: This restricts your results to a particular space or a group of spaces (favorites, personal, or global)
  • What: This restricts your results to a particular content type (pages, blog posts, comments, and so on)
  • When: This restricts your results to the content modified within a given period of time (today, yesterday, last week, and so on)
  • Who: This restricts your results to the content last modified by a particular user

Don't forget to click on the Filter button after specifying your filter. If you use more than one filter, Confluence will filter based on all those filters. Use the Clear Filter link to remove all filters and return the full result set.

Searching labels

You can also use the full search to search for labels. Use the labelText: prefix to search-specify for content with the specified label. The following are some examples how to use this prefix:

Searching for…

Returns content that…

IpsumlabelText:lorem

Contains the word "ipsum" or has the label "lorem"

ipsum AND labelText:lorem

Contains the word "ipsum" and has the label "lorem"

labelText:ipsumlabelText:lorem

Has the label "ipsum" or the label "lorem"

labelText:ipsum AND labelText:lorem

Has both labels "ipsum" and "lorem"

The labelText: prefix is an example of using search fields. Using search fields is a really powerful and advanced way of using the Apache Lucene search engine used in Confluence.

Note

Apache Lucene is a full-text search engine that Confluence uses for indexing all the content and providing the search functionalities discussed in this chapter.

There are more search fields available that can be used to find content in Confluence. They are as follows:

Search field

Description

spaceKey

You can search for content located in the space with the specified spaceKey field.

For example, spaceKey:doc.

creatorName

You can search for content created by the user with the specified username.

For example, creatorName:arthur.

lastModifiers

You can search for content where the last modifier is the user with the specified username.

For example, lastModifiers:ford.

macroName

You can search for content where the given macro is used.

For example, macroName:table-plus*.

filename

You can search for attachments with the specified filename.

For example, filename:requirement*.

created

You can search for content that is created within the range specified. The format is yyyymmdd.

For example, created:[20130524 TO 20130525].

More information on search fields is available online at https://confluence.atlassian.com/display/DOC/Confluence+Search+Field.

The search syntax

Confluence has a search syntax that will help you further refine your search queries. This search syntax is explained as follows:

Syntax

Example

Description

OR

lorem OR ipsum

You can search for content that contains one of the terms. Note that OR must be in capital letters.

AND

lorem AND ipsum

You can search for content that contains both terms. Note that AND must be in capital letters.

NOT

lorem NOT ipsum

In this example, you can search for content that contains lorem but not ipsum. Note that NOT must be in capital letters.

-

lorem -ipsum

This is similar to the NOT search.

( )

(lorem OR ipsum) AND dolor

In this example, the search must contain dolor but can contain either lorem or ipsum.

title:

title:lorem

In this example, you can search for content with lorem in the title.

?

l?rem

In this example, you can search for lorem or larem.

*

lo*

In this example, you can search for content with words starting with lo.

i*m

In this example, you can search for ipsum or idem.

~n

"lorem ipsum"~1

The two words specified must be within a certain number of words of each other.

[ ]

[ipsum TO lorem]

This searches for words that fall alphabetically within the specified range.

Note that you can't use AND inside this statement and TO must be in capital letters.

~

octogan~

This searches for words spelled similarly. It is useful when you are not sure about the spelling. In this example, ~ will correctly return octagon.

macroName:

macroName:Panel

This searches for content where the macro "Panel" is being used.

Confluence will ignore common words such as "and" or "the". This is based on the default list of stop words used by Lucene.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.108.175