# Customizing facet labels in Search UI

**URL:** <https://discuss.elastic.co/t/customizing-facet-labels-in-search-ui/334255>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [May 24, 2023, 7:26pm UTC](https://discuss.elastic.co/t/customizing-facet-labels-in-search-ui/334255 "2023-05-24T19:26:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Brandenburg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_brandenburg/32/117741_2.png) [@John\_Brandenburg](https://discuss.elastic.co/u/John_Brandenburg)\
**Post date:** [May 24, 2023, 7:26pm UTC](https://discuss.elastic.co/t/customizing-facet-labels-in-search-ui/334255/1 "2023-05-24T19:26:33Z")

</div>

I saw [this topic](https://discuss.elastic.co/t/with-search-ui-how-to-change-view-of-the-facet-options/312038) asking how to custom facet labels in Search UI, and I figured out a way to do that, and thought I would share. p.s. you should consider not closing topics in only 28 days. In tech forums, people may come across issues months, or even years later.

Basically, I have a custom facet, and I call a function that basically looks up a pre-defined list of labels for any given value. e.g.

```auto
<span className="sui-multi-checkbox-facet__input-text">
    {getFilterValueDisplay(option.value)}
</span>

```

and getFilterValueDisplay() is a custom function that just holds a bunch or if statements (or however you like to look up your data).

---

<div class="post-metadata">

**Author:** ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)\
**Post date:** [May 25, 2023, 7:34am UTC](https://discuss.elastic.co/t/customizing-facet-labels-in-search-ui/334255/2 "2023-05-25T07:34:30Z")

</div>

thank you for sharing @John_Brandenburg! This is helpful feedback and we will try incorporate it into our documentation examples.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 22, 2023, 7:35am UTC](https://discuss.elastic.co/t/customizing-facet-labels-in-search-ui/334255/3 "2023-06-22T07:35:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
