# Completion Suggester Foreign Language Accents Greek

**URL:** https://discuss.elastic.co/t/completion-suggester-foreign-language-accents-greek/96051
**Category:** Elasticsearch
**Created:** [August 7, 2017, 6:59am UTC](https://discuss.elastic.co/t/completion-suggester-foreign-language-accents-greek/96051 "2017-08-07T06:59:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bjorn\_Grambow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_grambow/32/7879_2.png) [@Bjorn\_Grambow](https://discuss.elastic.co/u/Bjorn_Grambow)
#### Post date: [August 7, 2017, 6:59am UTC](https://discuss.elastic.co/t/completion-suggester-foreign-language-accents-greek/96051/1 "2017-08-07T06:59:59Z")

</div>

Hi,

I am trying to use the Completion suggester with Greek language. Unfortunately I have problems with accents like `ά`. I've tried a few ways.

One was simply to set the greek analyzer in the mapping the other a lowercase analyzer with asciifolding. No success, with greek analyser I dont even get a result with the accent.

Below is what I did, hope someone can help me out here ... Thanks.

## Mapping

```auto
PUT t1
{
  "mappings": {
    "profession" : {
      "properties" : {
        "text" : {
            "type" : "keyword"
        },
        "suggest" : {
            "type" : "completion",
            "analyzer": "greek"
        }
      }
    }
  }
}

```

## Dummy

```auto
POST t1/profession/?refresh
{
    "suggest" : {
        "input": ["Μάγειρας"]
    }
    ,"text": "Μάγειρας"
}

```

## Query

```auto
GET t1/profession/_search
{ "suggest": 
  { "profession" : 
      { "prefix" : "Μα"
      , "completion" : 
        { "field" : "suggest"}
      }}}

```

---

<div class="post-metadata">

### Author: ![Bjorn\_Grambow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjorn_grambow/32/7879_2.png) [@Bjorn\_Grambow](https://discuss.elastic.co/u/Bjorn_Grambow)
#### Post date: [August 7, 2017, 9:29am UTC](https://discuss.elastic.co/t/completion-suggester-foreign-language-accents-greek/96051/2 "2017-08-07T09:29:08Z")

</div>

I found a way to do it with a custom analyzer. See below. It would be great though to figure out why the build in greek analyzer doesn't work

```auto
    PUT t1
    { "settings": 
        { "analysis": 
          { "filter": 
            { "greek_lowercase": 
              { "type": "lowercase"
              , "language": "greek"
              }  
            }
          , "analyzer": 
              { "autocomplete": 
                { "tokenizer": "lowercase"
                , "filter": 
                    ["greek_lowercase"]
              }
            }
        }}
    , "mappings": {
        "profession" : {
          "properties" : {
            "text" : {
                "type" : "keyword"
            },
            "suggest" : {
                "type" : "completion",
                "analyzer": "autocomplete"
            }
          }}}
    }

```

---

<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: [September 4, 2017, 9:29am UTC](https://discuss.elastic.co/t/completion-suggester-foreign-language-accents-greek/96051/3 "2017-09-04T09:29:27Z")

</div>

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