LiveSearch: How to configure macro to show all search results
Asked by Stan Ry:

Hi there,

The built-it [LiveSearch macro](https://confluence.atlassian.com/doc/livesearch-macro-163415902.html) has a great advantage over the [Search macro](https://docs.refinedwiki.com/display/rwot/Search+macro) supplied with Refined theme. Unlike the Refined's Search macro, which only searches inside page titles, attachment names, and label names, the LiveSeach plugin allows you to search inside pages.

This means that whenever the search keyword is found in page title, both macros return a result. However, if the match is found only within the page text, **only LiveSearch macro will do**. Search macro only searches in titles.

However.

Despite the fact that LiveSearch searches everywhere inlcuding text on pages, the macro seems to be limited to 6 results only. At least I am seeing a limit number of results displayed in the drop-down list that shows when typing in the macro's search field. Full restult list is only shown when choosing **Show more results** from the drop-down list with seach results.

**Is there any way I could configure how many results are returned by LiveSearch in the list before the user needs to open the search page to look for all results?**

Thank you,


Answers:
author: Janette _Refined
body: Hi [@Stan Ry](/t5/user/viewprofilepage/user-id/2115302)

With the Refined Search macro you can also search for page content but it is not the default behavior. I've tried the CQL you've added

```
(text ~"$query*" or title ~"$query*" or label in ("$query"))
```

and I do get results. Do you have the "Include title and label search" checkbox checked in the module settings? Make sure that is unchecked as it will add into the CQL query. If you still don't get the results you expect, please contact [our support](https://support.refinedwiki.com "Refined support") so we can help you out!

Best Regards, Janette \[RefinedWiki\]

comments: author: Stan Ry
body: Hi [@Janette _Refined](/t5/user/viewprofilepage/user-id/1173626) ,

Thank you for your response.

I am using the following query to focus on specific space:

```
(space in (my_atl-space-key_here) AND (text ~"$query*" or title ~"$query*" or label in ("$query")))
```

And it does NOT give me results for some keywords I am entering. These are in cyrillics.

For example, for a specific keyword LiveSearch returns 4 results whereas Refined Search returns no result.

Configuration settings I am using are as follows:

**Placeholder Text**: Ask us

**Space**: empty (unset)

**Category**: empty (unset)

**Site**: empty (unset)

**CQL**: (space in (my_atl-space-key_here) AND (text \~"$query\*" or title \~"$query\*" or label in ("$query")))

Any clues?


author: Janette _Refined
body: Hi [@Stan Ry](/t5/user/viewprofilepage/user-id/2115302)

I've tried to add the exact same same CQL (with one and multiple space keys) and using cyrillic alphabets and I still get expected results. For further troubleshooting it would be great if you created a ticket in [our support](https://support.refined.com "Refined support") so we can help you further.

Best regards, Janette


author: Jonathan Smith
body: Hi [@Stan Ry](/t5/user/viewprofilepage/user-id/2115302) ,

In short, it does not look like there is a way to display more than the 5 results and the "more" option out of the box.

* When editing the **livesearch macro** on a page, there is not a parameter for the number of 'quick results / suggestions'.
* Within Confluence admin console / add ons / system add ons, there are no properties we can configure within the **Confluence live Search Macros Plugin**.

- Jonathan

comments: author: Jonathan Smith
body: [@Stan Ry](/t5/user/viewprofilepage/user-id/2115302) ,

You can request new features here: <https://jira.atlassian.com/secure/Dashboard.jspa>


author: Stan Ry
body: Hi [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033)

Thanks for your response.

Any clue on how to configure Search macro to look not only in titles but also within the text on the page?

By default the CQL query specification the macro is using looks like:

```
(title ~"$query*" or label in ("$query"))
```

Changing to

```
(text ~"$query*" or title ~"$query*" or label in ("$query"))
```

didn't help. Instead, this query has broken the search result at all.


author: Jonathan Smith
body: [@Stan Ry](/t5/user/viewprofilepage/user-id/2115302)

By default, livesearch macro finds wording on the page.

Example, I KNOW "grayed" is text on this page, but only page titles will display in the top 5 results.

![a.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/49478i65901F30027D398E/image-size/large?v=v2&px=999 "a.jpg")


author: Stan Ry
body: [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) sure thing, it does find!

That's why I plan to get rid of Search macro and move to LiveSearch.

I just wanted to ask if you by chance know how to configure Search macro to search on pages. My attempts to configure a CQL query in Search macro have left me with nothing.

LiveSeach does this by default whouth having to reconfigure it further. And the only shortcoming here is that LiveSearch shows only first 6 query results. This causes my users think there are no more results. Yep, unfortunately many of them think that drop-down shows all available results. So they don't follow More results and rather create an inquiry to support team to find "missing" pages :) Or at least some of them think there are missing pages.


author: Jonathan Smith
body: Sadly you are getting into the development side - which I am not comfortable in :)


author: Stan Ry
body: [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) thank your for your support.


Tags: live-search

macro

search