Gravatar for

Question by aokour, Aug 21, 2015 7:45 AM

Hide tabs that don't have results

In our Coveo for Sitecore implementation we have a search page with multiple tab, each tab has it's own data-expression, I know that Coveo run the search on one tab at a time, is there a way that we can run search query on all tabs query expression when user hit the search button so that we can hide any tab that does not have any results and show the tabs with results?

1 Reply
Gravatar for

Answer by Martin Laporte, Aug 21, 2015 9:09 AM

There is nothing out-of-the-box for this, no, because doing so would put quite a heavy load on the index. It is probably possible to implement this in a custom fashion by running separate queries and showing/hiding tabs depending on the results, but this would probably introduce a bit of flick in the UI so I'm not sure it's a good idea.

Ask a question