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:
1. When I search for "test", I found:
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:
------
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
Community moderators have prevented the ability to post new answers.
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?
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
Alternativly you need to overwrite the file directly containing this , which means, you need to search for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.