Gravatar for corrac@paragon-inc.com

Question by Cris Corra, May 28, 2014 4:28 PM

How can I filter a Search Interface using Tab Components?

Our use case is a scenario where a search results listing is filtered by a field in the index. I would like to use the Tab Components to let the user click each tab and filter the results list (search query) depending on which tab they clicked. Is this possible? Is this not the correct use of the Tab Component? Would this be better custom coded?

Thanks! Cris

1 Reply
Gravatar for cbolduc@coveo.com

Answer by Carl Bolduc, May 28, 2014 4:34 PM

You can add the "data-expression" attribute to your tab with a query to restrict content like so:

data-expression='@objecttype==("Message")'

See this page for more details.

Ask a question