Troubleshooting livesearch macro

Thibaut Wavreille April 15, 2014

I'm working with Confluence 5.3.4 and I'm using the "Livesearch" macro.

I encountered a big issue with it. I configured this macro to search pages in a specified space. In this space, I've 3 pages, the following list shows all page titles:

  • testing forum
  • test forum
  • aaa testing the forum

1. When I search for "test", I found:

  • testing forum
  • test forum
  • aaa testing the forum

this is a normal result that I expected.

2. When I search for "testi", I found:

NOTHING

3. When I search for "testin", I found:

NOTHING

4. When I search for "testing", I found:

  • testing forum
  • aaa testing the forum

------

PS: the call ajax seems correct, I've the search word in my header....

So my question is: why can I not find something for test number 2 & 3 ?

Thank you

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Steve Gerstner [bridgingIT]
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.
May 5, 2014

Looks like the macro does not support stemming correctly. Can't you use the quicksearch as it gives you nearly the same feature as the livesearch amcro?

Thibaut Wavreille May 6, 2014

There is no macro called quicksearch...

The quick search is the search bar on top but I can't use this in a page to search on a specific space...

Any idea ?

Steve Gerstner [bridgingIT]
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.
May 7, 2014

The quicknav calls in my version of confluence the following url http://localhost:8090/json/contentnamesearch.action?query=test

If you now add a spacekey like http://localhost:8090/json/contentnamesearch.action?query=test&spaceKey=<YourSpaceKey> it will only search in the defined space.

That was the easy part, now you need to identify the js function calling the quicknav and overwrite it, so it can call the extended url with the spacekey ;)

Maybe this is a good point to start:

<script language="javascript">

Confluence.QuickNav.setMakeParams(function(value){
return {
query: value,
type: ['page','attachment']
}
});
</script>
But you need to limit the spacekey and not the type ;)

Alternativly you need to overwrite the file directly containing this , which means, you need to search for it.

Like Bjoern Runge likes this
0 votes
Thibaut Wavreille May 5, 2014

No idea ?

TAGS
AUG Leaders

Atlassian Community Events