Labels within the quick search / quick navigation box?

Hello all

Someone has reported that they can't find pages by labels from the Quick Search box (such as the one in the top bar of this very page). From what I've researched, this box searches by article title only, however someone else says that this is a bug as it should search by label. I know there's possible plugins that allow for this but the person who reported it said they were able to search for pages by label in this box without a plugin previously.

Can anyone help me and let me know which one of us is correct? Is the Quick Search box for searching by title only? Or should it find pages by label too?

Thanks in advance!

Brian

3 answers

1 accepted

This widget could not be displayed.

Ah, ok, I get what you're asking now. I tested this on my own site and the result was no, entering the label did not bring up the page in the Quick Search. It was, however, the first hit on the resulting search page. I looked into seeing if you could extend the dosearchsite action to include labels, but couldn't find info on it.

This widget could not be displayed.

The Quick Search box includes content, not just page titles. I don't think that labels is a default search field (meaning, it won't be included in the default search). However, according to this page:

https://confluence.atlassian.com/display/DOC/Confluence+Search+Syntax

You can preface a query with "labelText:" to search by label.

Hi Matthew

Thanks for taking the time to respond!

Indeed, typing in to the Quick Search box and pressing return takes us to the full search page and lets us find labels as suggested. This works fine for us. Our argument is about the drop-down that appear while typing in the box itself before pressing return / clicking the magnifying glass. Does this display only matching titles? Or should it be showing label matches as well?

Our reason for wanting this is that we rely heavily on labels sometimes and want to make it as easy as possible to search based on a label

Brian

This widget could not be displayed.

Brian,

there's more info about search ranking here: https://confluence.atlassian.com/display/DOC/Ranking+of+Search+Results

Cheers.

Hi Mick

Thanks for the response but I think I'm not getting my question across properly. Below is a sample "quick search". What I would like to know is if this should or should not include searches by label? I.e. if I was to add 'apples' as a label to the "Ranking of Search Results" page searched, then did a quick search as below for 'apples', would this still return the "Ranking of Search Results" page?

Sample of a quick search

Hope this exaplins my question more clearly

Brian

Ah, ok, I get what you're asking now. I tested this on my own site and the result was no, entering the label did not bring up the page in the Quick Search. It was, however, the first hit on the resulting search page. I looked into seeing if you could extend the dosearchsite action to include labels, but couldn't find info on it.

Thanks Matthew

Can you add that as an answer rather than a comment? Then I can assign you the points

Brian

Suggest an answer

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

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

479 views 6 6
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you