# Cannot suggest as I assume

**URL:** <https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604>\
**Category:** Elasticsearch\
**Created:** [March 14, 2023, 1:49am UTC](https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604 "2023-03-14T01:49:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor.Li](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@Victor.Li](https://discuss.elastic.co/u/Victor.Li)\
**Post date:** [March 14, 2023, 1:49am UTC](https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604/1 "2023-03-14T01:49:18Z")

</div>

There's one field called 'table\_name' of which format is like 't\_data\_quality', 't\_data\_security'.  
Its mapping is

> "mappings": {  
> "properties": {  
> "table\_name": {  
> "type": "text",  
> "fields":{  
> "suggest":{  
> "type":"completion",  
> "analyzer":"ik\_max\_word"  
> }  
> }  
> }  
> }  
> }

And its analyzing results is

 ![微信图片_20230314094111](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a1709ea81e384e11b6ab4d68d3435b7fb24b73f4.png)

We can see the results contain the token 't\_data\_quality', but whenI use completion suggester like this, it returns nothing.

 ![微信图片_20230314094404](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71dcbfaaed9c528fd6753e49739c788e42bf8e8a.png)

And when I modify the analyzer in mapping from 'ik\_max\_word' to 'ik\_smart' or 'standard' or 'english' (the analyze results are same, it will produce one token alone, which is 't\_data\_quality'), it can suggest when input the text like 't\_' or 't\_da' or 't\_data'.

I'm so confused. Any advice or idea would be helpful. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Victor.Li](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@Victor.Li](https://discuss.elastic.co/u/Victor.Li)\
**Post date:** [March 14, 2023, 1:51am UTC](https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604/2 "2023-03-14T01:51:01Z")

</div>

BTW, the version of my elasticsearch is 8.2.2.

---

<div class="post-metadata">

**Author:** ![Chenhui\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chenhui_wang/32/78869_2.png) [@Chenhui\_Wang](https://discuss.elastic.co/u/Chenhui_Wang)\
**Post date:** [March 14, 2023, 7:19am UTC](https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604/3 "2023-03-14T07:19:27Z")

</div>

Hi @Victor.Li , welcome to the community.

I'd suggest you post this directly in [Elastic Stack - Discuss the Elastic Stack](https://discuss.elastic.co/c/elastic-stack/81), so that you question gets better answered.

---

<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:** [April 13, 2023, 2:42am UTC](https://discuss.elastic.co/t/cannot-suggest-as-i-assume/327604/5 "2023-04-13T02:42:21Z")

</div>

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