# How to get phonetic suggsetion?

**URL:** <https://discuss.elastic.co/t/how-to-get-phonetic-suggsetion/139575>\
**Category:** Elasticsearch\
**Created:** [July 11, 2018, 1:23pm UTC](https://discuss.elastic.co/t/how-to-get-phonetic-suggsetion/139575 "2018-07-11T13:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishwas\_jadav](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vishwas\_jadav](https://discuss.elastic.co/u/vishwas_jadav)\
**Post date:** [July 11, 2018, 1:23pm UTC](https://discuss.elastic.co/t/how-to-get-phonetic-suggsetion/139575/1 "2018-07-11T13:23:24Z")

</div>

I have used search query for phonetic search. But, now first I want to get suggestion before searching.  
I tried using same analyzer which I used for phonetic searching, but, got messy result.

Here is an example

```
    GET new_us/_search
    {
      "suggest": {
        "my_suggest": {
          "text" : "google",
          "term" : {
            "field" : "mark_identification.phonetic_suggest"
          }
        }
      }
    }

    Result: 
    {
      "took": 90,
      "timed_out": false,
      "_shards": {
        "total": 5,
        "successful": 5,
        "skipped": 0,
        "failed": 0
      },
      "hits": {
        "total": 0,
        "max_score": 0,
        "hits": []
      },
      "suggest": {
        "my_suggest": [
          {
            "text": "gugil",
            "offset": 0,
            "length": 6,
            "options": []
          },
          {
            "text": "gugl",
            "offset": 0,
            "length": 6,
            "options": []
          },
          {
            "text": "guglY",
            "offset": 0,
            "length": 6,
            "options": []
          },
          {
            "text": "gugli",
            "offset": 0,
            "length": 6,
            "options": []
          }
        ]
      }
    }

```

These are for "gugly" not for "gugal"(pronunciation).

---

<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 8, 2018, 1:23pm UTC](https://discuss.elastic.co/t/how-to-get-phonetic-suggsetion/139575/2 "2018-08-08T13:23:27Z")

</div>

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