Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

LiveSearch: How to configure macro to show all search results

Stan Ry
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.
March 25, 2019

Hi there,

The built-it LiveSearch macro has a great advantage over the 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,

2 answers

1 vote
Janette _Refined
Contributor
March 27, 2019

Hi @Stan Ry 

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 so we can help you out!

Best Regards, Janette [RefinedWiki]

Stan Ry
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.
March 29, 2019

Hi @Janette _Refined ,

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?

Janette _Refined
Contributor
April 2, 2019

Hi @Stan Ry 

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 so we can help you further.

 

Best regards, Janette

1 vote
Jonathan Smith
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.
March 25, 2019

Hi @Stan Ry ,

  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

Jonathan Smith
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.
March 25, 2019

@Stan Ry ,

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

Stan Ry
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.
March 25, 2019

Hi @Jonathan Smith

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.

Jonathan Smith
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.
March 25, 2019

@Stan Ry 

  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

Like Stan Ry likes this
Stan Ry
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.
March 25, 2019

@Jonathan Smith 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.

Jonathan Smith
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.
March 25, 2019

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

Stan Ry
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.
March 25, 2019

@Jonathan Smith thank your for your support.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events