Gravatar for allan.ferencz@techguilds.com

Question by allanferencz, Jan 19, 2018 3:32 PM

Custom Facet for alphabet.

I'm working on a search page that allows the user to sort alphabetically.

The only problem I'm facing is the facet is only displaying letters that exist.

Current: A B C D I

Goal: A B C D E F ....... Z

I was thinking about altering the dom to add the missing letters, but when you click it removes them. So I'm thinking that approach has some unknown problems I will run into.

How would you go about achieving the goal?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jan 19, 2018 3:40 PM

You should implement your own custom component for this task. The custom component would add an advanced query filter expression like `@field==SelectedLetter`.

Gravatar for allan.ferencz@techguilds.com

Comment by allanferencz, Jan 19, 2018 4:00 PM

Ok, that's good I was thinking I would need to create my own component.

Could you elaborate more on the advance query filter expression?

Ask a question