# Elastic app search synonyms

**URL:** https://discuss.elastic.co/t/elastic-app-search-synonyms/369316
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [October 24, 2024, 5:19am UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316 "2024-10-24T05:19:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lostinroom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lostinroom/32/138650_2.png) [@lostinroom](https://discuss.elastic.co/u/lostinroom)
#### Post date: [October 24, 2024, 5:19am UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/1 "2024-10-24T05:19:21Z")

</div>

Hi,  
Can share what is the best practice to add synonyms?  
i.e. car, it can mean motor, vehicle as well  
So when user search car, I want vehicle and motor are included as well.  
Should I add it as synonyms?  
There is default limit of 256.  
Although it can be adjusted, it seems slow down the performance.

Thanks

---

<div class="post-metadata">

### Author: ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)
#### Post date: [October 24, 2024, 12:29pm UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/2 "2024-10-24T12:29:36Z")

</div>

Welcome to the community @lostinroom !

You have the right use of synonyms, it's to define words that should always be associated with each other. You're also correct that too many App Search synonyms will have an [undesirable impact on performance](https://www.elastic.co/guide/en/app-search/current/synonyms-guide.html#synonyms-guide-note-on-performance).

We've addressed this in the Stack with our new [Synonyms API](https://www.elastic.co/guide/en/elasticsearch/reference/current/synonyms-apis.html) first launched in 8.10, however this synonyms API will not work out of the box with App Search. If you're spinning up a new Engine, I'd recommend looking at something like [search applications](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-overview.html) instead, to allow you to use all of the features in Elasticsearch that aren't supported by App Search.

---

<div class="post-metadata">

### Author: ![lostinroom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lostinroom/32/138650_2.png) [@lostinroom](https://discuss.elastic.co/u/lostinroom)
#### Post date: [October 25, 2024, 2:55am UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/3 "2024-10-25T02:55:11Z")

</div>

Hi,

Thanks for quick response.

The reason I use app search because it has UI to set relevance tuning and curation to to adjust the result. And also analytics to see top and recent queries.

Is there any plan to fix the performance of app search in the future?

If I understand correctly, if I use [Synonyms API](https://www.elastic.co/guide/en/elasticsearch/reference/current/synonyms-apis.html) that you suggested, I cannot use app search. I wonder if feature like relevance tuning, curation and analytics are available without app search?

Thanks

---

<div class="post-metadata">

### Author: ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)
#### Post date: [October 25, 2024, 12:33pm UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/5 "2024-10-25T12:33:45Z")

</div>

You're correct, if you want to use App Search it won't work with the new Synonyms API and you will have to use the Synoynms API that is baked into App Search.

We have published a [comparison table](https://www.elastic.co/guide/en/app-search/current/index.html) between App Search and native Elasticsearch as well as a [Python notebook]( [an example Python notebook](https://github.com/elastic/elasticsearch-labs/blob/main/notebooks/enterprise-search/app-search-engine-exporter.ipynb)) that shows how you can migrate existing App Search engines to Elasticsearch.

We do have features such as query rules and behavioral analytics that aim to meet some of the functionality that App Search offers. While Elasticsearch doesn't have built in text search relevance adjustment in the manner that App Search does, it provides much more relevant out of the box search for use cases such as semantic search.

---

<div class="post-metadata">

### Author: ![lostinroom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lostinroom/32/138650_2.png) [@lostinroom](https://discuss.elastic.co/u/lostinroom)
#### Post date: [October 28, 2024, 7:16am UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/6 "2024-10-28T07:16:24Z")

</div>

It seems it will need a lot of effort to set the features as they are not build in.  
Thanks for your help.  
Really appreciated.

---

<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: [November 25, 2024, 7:17am UTC](https://discuss.elastic.co/t/elastic-app-search-synonyms/369316/7 "2024-11-25T07:17:23Z")

</div>

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