How are label names considered when searching?

Melissa Henderson November 13, 2014

Since labels can only be one word, how does the use of no spaces, hyphens or underscores in labels affect what is returned in the search results?

For example, I have a page with the following labels: signon, sign_on, sign-on. I search for "sign on" (with or without quotes). Would this page show up in the search results since the labels don't exactly match what is being searched for?

3 answers

0 votes
Melissa Henderson November 17, 2014

Based on my test, it looks like sign-on, sign_on, and sign (one label) on (another label) are treated the same when searching for the whole phrase, and in all instances my page was returned near the top in my search results. The label signon did not return my page in the first page of the search results.

J November 17, 2014

Hi, Just wondering which search you guys are using? Are you using the specific labelText search? I am trying to get the labels to show in the Confluence search but has not been successful. Thanks.

Melissa Henderson November 18, 2014

I am not. I entered ​Sign On ​into the global search box. Since I'm not using the labelText search, there are other things that influence page rank (https://confluence.atlassian.com/display/CONF43/Ranking+of+Search+Results) that I had to consider as well.

Davin Studer
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.
November 18, 2014

We have been referring to just regular searches. The regular search will look at labels too. The search term labelText is if you only want to search by label. If you want to search by labelText the syntax is ... labelText:mylabel

0 votes
Melissa Henderson November 13, 2014

Hi Davin,

Could you tell me exactly what you tried? I'm not sure what you mean by "it". I appreciate you taking the time to help me. 

Davin Studer
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.
November 13, 2014

I created a page and gave it all three labels that you mentioned and then did a search both with quotes and without for sign on.

Melissa Henderson November 13, 2014

Ok, I will do the same, but test with one label at a time since I am still not clear whether one version has more power over another.

0 votes
Davin Studer
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.
November 13, 2014

Well, I tried it on my instance and it returned the page with and without quotes. Honestly, I was surprised that with quotes the page was returned because when you quote the terms it means you are looking for an exact search and none of those labels are exactly that. But it returned anyway.

On a side note. Typically, I think the best of use of labels should not be for search purposes but rather to group types of documents. If you want your users to find the documents then the terms should be in the content of the document itself. A good label would be something like "policy". So if you wanted you could find all of the documents in the system that are policies by using this search syntax (labelText:policy). You certainly can use it for keywords ... it will work. But, I think the best use is for categorizing.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events