Enabling and configuring search sessions

Hello,

It’s been some years working in funnelback so I’m a tad rusty. Can anyone tell me whether I can use the ui.modern.session=true so I can use the “Add to favourites” functionality with a database type collection?

Thank you

There was definitely a time when this didn’t work but I think based on my reading of the bug report that this was fixed some time ago.

I don’t have an easy way to check at the moment but the short answer is that I think it should work (but it would be a good idea to test it to know for sure).

If you find that it doesn’t work please let us know and I’ll raise another bug report.

cheers,
Peter

Thank you, for your quick reply.

I have it working on a normal web collection - I copied the code needed from that collection (test environment) but I’m guessing the code wouldn’t be any different?

I just cant get it working on my test environment re; database collection.

I can copy/paste the code I have for you to see whether I have missed anything?

regards
Nick

I’ve just done a quick test on one of our servers and it does seem to work. What version are you running?

To get it working I enabled sessions (set ui.modern.sessions=true in collection.cfg) then reloaded the results. Note: you want to test it first with a copy of the default template. If you have customised your template the session code could have been broken as it relies on angular code that’s embedded into the default template.

Version: Funnelback 15.10.0 (45106 #60)

collection.cfg
ui.modern.session=true
ui.modern.session.search_history.size=5

What do you mean by customised?

cheers

The bug report suggested that it was fixed for v14.2.3 so it should be working for you I think.

By customised I mean if the template has been restyled etc. There are a bunch of properties that are set on various elements in the default template that the sessions functionality relies upon so it’s a good idea to test first with the default template to make sure it’s not a change that’s been made to the template that’s causing the issue.

cheers,
Peter

Yeah there’s a lot of restyling, I’ll create a new default template template / collection (type database) then I’ll start testing.
I’ll let you know.
In the meantime I had to created a cookie based solution - al lot of extra work but if I can get funnelback handle that part it would make a huge difference

Thanks Peter

No worries. The integration between the template and the sessions Javascript is complicated and easy to break in the template. It’s something that will get addressed eventually but unfortunately it’s pretty low priority at the moment.