Gravatar for

Question by seenivasan.alagarsamy, May 9, 2018 3:36 PM

Retain and show all facet values after the search .


i have a facet which displays a list of check box ( multi-select). 1 + , 2+ , 3 +, 4+ , 5+ .Let say if i select 3 + i have created an aq :( fieldname = ( 3, 4, 5 )) and it brought down the results matched 3 4 and 5 and the facet removes the option 1+ and 2+ . It's there an option to retain all the facet value regardless of the result set ?

Gravatar for

Comment by Jean-François L'Heureux, May 9, 2018 3:52 PM

Is this a standard facet component or a custom one you created? The aq you created on facet item click seems unusual to me.

1 Reply
Gravatar for

Answer by Jean-François L'Heureux, May 10, 2018 9:46 AM

There is definitely a way to continue to display facet items after a selection is made because the out of the box facet component does that. However, I am unsure of how this is accomplished. I believe it is orchestrated in the `processNewGroupByResults` function of the facet component:

Have a look at the original facet code and learn how it works. This will give you the knowledge on how to implement this feature in your custom facet.

Ask a question