This page provides information on how to perform text searches. It applies to advanced searches when used with the CONTAINS operator.
A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.
A Single Term is a single word such as "test
" or "hello
".
A Phrase is a group of words surrounded by double quotes such as "hello dolly
".
To find exact matches for phrase "hello dolly
", you need to enclose the whole phrase in quotation-marks (").
Otherwise, the search will return all issues that contain both words in no particular order - this
would include "hello dolly
", but also "hello world dolly
".
Examples
Advanced search: Find all content where the text contains the words "hello" and the word "dolly", in no particular order.
1 2text ~ "hello dolly"
Advanced search: Find all content where the text contains the exact phrase "hello dolly":
1 2text ~ "\"hello dolly\""
Confluence supports modifying query terms to provide a wide range of searching options.
Wildcard searches: ? and * | Fuzzy searches: ~
Confluence supports single and multiple character wildcard searches.
To perform a single character wildcard search use the "?
" symbol.
To perform a multiple character wildcard search use the "*
" symbol.
The single character wildcard search looks for terms that match that with the single character replaced. For example, to search for "text
" or "test
" you can use the search:
1 2te?t
Multiple character wildcard searches looks for 0 or more characters. For example, to search for Windows
, Win95
or WindowsNT
you can use the search:
1 2win*
You can also use the wildcard searches in the middle of a term. For example, to search for Win95
or Windows95
you can use the search
1 2wi*95
You cannot use a * or ? symbol as the first character of a search. The feature request for this is JRA-6218.
Confluence supports fuzzy searches. To do a fuzzy search use the tilde, (~), symbol at the end of a single word term. For example to search for a term similar in spelling to "roam
" use the fuzzy search:
1 2roam~
This search will find terms like foam and roams.
Rate this page: