Gravatar for agaas@productiveedge.com

Question by Alex, Aug 11, 2017 4:59 PM

Sort facet items in ascending order through interaction with other facets

1) I have a few standard facets (not custom) for one result set.

2) When I click on the one facet "A" Im getting result set, and order of facet items is not changing

3) When I click to other facet "B", facet "A" order is changing in ascending order. That make sense

4) But when I click on the facet "A" again, result set is changing but order for facet items is not changing.

I need keep consistency in terms of user expirience so in case 3 I need also change facet "A" in ascending order. In fact I need to re-order facet "A" for each click on facet "B".

Do I have a way to change facet sorting thru Coveo JS API on the buildingQuery (or some "post" event like deferredQuerySuccess)?

Thanks, Alex

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Aug 15, 2017 10:28 AM

I would like to clarify:

  • Point 4, you are talking about the order of facet A or the order of facet B?
  • Need to re-order facet "A" for each click of facet "B". Isn't it already the case?
Gravatar for agaas@productiveedge.com

Comment by Alex, Aug 15, 2017 6:59 PM

>Point 4, you are talking about the order of facet A or the order of facet B?

I talk about order of Facet A.I need keep consistency when I click on every facet. If it's re-ordering that's fine, it just must be consistent when user clicks on any facet.

Now it's re-ordering only if user clicks on the other facet.

>Need to re-order facet "A" for each click of facet "B". Isn't it already the case?

Sorry that's my bad. I need to re-order facet "A" for each click on the facet "B" or click on itself if facet "B" been selected

0 Reply
Ask a question