# Assistance with a proper searching technique

**URL:** <https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198>\
**Category:** Elasticsearch\
**Created:** [July 31, 2019, 6:11pm UTC](https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198 "2019-07-31T18:11:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Garcia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steven_garcia/32/44739_2.png) [@Steven\_Garcia](https://discuss.elastic.co/u/Steven_Garcia)\
**Post date:** [July 31, 2019, 6:11pm UTC](https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198/1 "2019-07-31T18:11:59Z")

</div>

Hey everyone,

**Question:**  
I tried looking around (my searching skills probably sucks) to see if there is an example of getting partial matches. Would anyone have any idea?

So for example my list of search terms would be:  
["Fort", "Worth"]

In my database, there are many entires that has "Fort Worth". But there is a couple of entires that are listed as "Ft. Worth". I cannot simply change it to "Fort Worth" because this data gets pulled from a 3rd party service. The search happens in real-time (with every keystroke).

If there is any articles that you want to link, feel free to link them so I can read it over.

---

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [August 1, 2019, 4:19am UTC](https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198/2 "2019-08-01T04:19:34Z")

</div>

Hi @Steven_Garcia,

I think that here what you need is a synonym search, check here about a post that explain how to setup synonyms. The post is not too old (elastic 6.x) and there's a lot of links to the documentation.

> **[Elasticsearch — Setting up a synonyms search](https://medium.com/@lucasmagnum/elasticsearch-setting-up-a-synonyms-search-facea907ef92)**
>
> Hey folks! Throughout this post, we will see how to configure a basic synonyms search using Elasticsearch (:

There's maybe other blog about I just take the first result on google and check quickly about, as it look fine I paste it here.

Only one notice about the blog, it only use a list of synonyms as array in the settings, for production use you'll go with a file, so you'll define your synonyms in the file then you need to open start your index to apply the changes (FYI this operation have a cost). Anyway just check about the synonyms and tell us if it what you want. 😁

---

<div class="post-metadata">

**Author:** ![Steven\_Garcia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steven_garcia/32/44739_2.png) [@Steven\_Garcia](https://discuss.elastic.co/u/Steven_Garcia)\
**Post date:** [August 1, 2019, 12:45pm UTC](https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198/3 "2019-08-01T12:45:09Z")

</div>

I will take a look, hopefully it wont be too costly. 😂

---

<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:** [August 29, 2019, 12:53pm UTC](https://discuss.elastic.co/t/assistance-with-a-proper-searching-technique/193198/4 "2019-08-29T12:53:13Z")

</div>

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