How to narrow the global search (livesearch?) to only spaces?
Asked by Alexander Klippel:

Hi,

when I'm using the search function it gives me like the worst results as possible. If any...

For example, we have a lot of "customer spaces" like

* Willie's Lawn Mawers
* Aaron's Fish \& Fries
* Jacqueline's Zoo
* Ronald's Casino
* Amy's Candy Jewelery
* Karen's Cupcake Museum
* Sean's Cupcake Museum
* Brandon's Dive Bar
* Michael's Falafel
* Scott's Zoo

When using the search function we don't get any results by typing "s", "se", "sea", "sean" and etc. We need to type the exact name "Sean's Cupcake Museum" to find that customers space.

Is it possible to narrow down the search results only to the main space site, instead of all child pages and so on? Our employees are using Confluence by first searching for the customer, then finding relevant information under that specific customer's space child pages.

Kind regards


Answers:
author: Allie Ruby
body: ++**PROBLEM - "See all results for ____" ignores label added to livesearch macro.**++

I am trying to use live search to search specific pages with a label. Therefore, it searches across all Confluence pages and only pulls back pages with the label.*Here is a screenshot of my live search macro with the label:*

![Screen Shot 2020-06-12 at 1.27.32 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/98788i92BCCEE77869A684/image-dimensions/222x368?v=v2 "Screen Shot 2020-06-12 at 1.27.32 PM.png")

Doing the initial search in the search bar, the few options displayed is fine.

![Screen Shot 2020-06-12 at 1.26.41 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/98787i70BBE399492A753B/image-dimensions/290x264?v=v2 "Screen Shot 2020-06-12 at 1.26.41 PM.png")

Clicking "See more results for ___" **completely ignores the label that I created the search macro to only search**. Therefore, it shows absolutely everything - not what we want.

++**The side bar shows that there is no label specified - why does this happen and how can we make sure it doesn't ignore the label?**++

![Screen Shot 2020-06-12 at 1.26.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/98789i8B39E50A8E296CDA/image-dimensions/288x703?v=v2 "Screen Shot 2020-06-12 at 1.26.51 PM.png")  
I understand we're sharing these sources and suggesting locking down pages to specific users would be asinine in my case since our company has over 24,000 employees.


author: JP _AC Bielefeld Leader_
body: You could create a start page with a live search macro only search pages contain a specific label. That label should then be set on the start pages of each space.

<https://confluence.atlassian.com/doc/livesearch-macro-163415902.html>

Best

JP

comments: author: Alexander Klippel
body: So the search function is just this bad?

Added a live search to a page, filtered to a label that I have set to all space sites. Still I need to type the exact and full name before Confluence finds that page.

![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/56663i199DACBEE8F7CD8D/image-size/large?v=v2&px=999 "1.png")![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/56665i94CB96DCA6559544/image-size/large?v=v2&px=999 "2.png")![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/56664i14369A4C93EF7154/image-size/large?v=v2&px=999 "3.png")


author: JP _AC Bielefeld Leader_
body: You could just add a \* after your search term...