# Synonyms in kibana discover

**URL:** <https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961>\
**Category:** Kibana\
**Created:** [May 21, 2023, 8:31pm UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961 "2023-05-21T20:31:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bav\_Tech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bav_tech/32/121248_2.png) [@Bav\_Tech](https://discuss.elastic.co/u/Bav_Tech)\
**Post date:** [May 21, 2023, 8:31pm UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961/1 "2023-05-21T20:31:15Z")

</div>

i am able to create a synonym analyzer and use it to query and get result using the kibana dev tool. is it possible that i use that same custom synonym analyzer when searching for a text in kibana discover? or better still how can i use synonyms in kibana discover searches.

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [May 22, 2023, 8:50am UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961/2 "2023-05-22T08:50:02Z")

</div>

Hi @Bav_Tech,

On Discover page you can define a new filter (look for "Edit as Query DSL" button) and specify your analyser in there. Or define a default search analyser for a field in index mapping settings. More info:

> **[Specify an analyzer | Elasticsearch Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/specify-analyzer.html#specify-search-analyzer)**

---

<div class="post-metadata">

**Author:** ![Bav\_Tech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bav_tech/32/121248_2.png) [@Bav\_Tech](https://discuss.elastic.co/u/Bav_Tech)\
**Post date:** [May 22, 2023, 3:57pm UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961/3 "2023-05-22T15:57:17Z")

</div>

thanks for you response, the second option worked for me . another issue arises when i try to create a visualisation using the fields that have the synonym mapper mapped to them, it doesnt make those fields available for visualising . Any work around for this?

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [May 22, 2023, 5:01pm UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961/4 "2023-05-22T17:01:55Z")

</div>

Visualizations work only with aggregatable fields: for example `keyword` field type by default. You would need to have a separate field for visualizing.

---

<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 19, 2023, 5:02pm UTC](https://discuss.elastic.co/t/synonyms-in-kibana-discover/333961/5 "2023-06-19T17:02:05Z")

</div>

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