# Can i add suggest array for autosuggestion with in logsatash

**URL:** <https://discuss.elastic.co/t/can-i-add-suggest-array-for-autosuggestion-with-in-logsatash/147687>\
**Category:** Logstash\
**Created:** [September 7, 2018, 9:48am UTC](https://discuss.elastic.co/t/can-i-add-suggest-array-for-autosuggestion-with-in-logsatash/147687 "2018-09-07T09:48:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chitresh\_jain](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@chitresh\_jain](https://discuss.elastic.co/u/chitresh_jain)\
**Post date:** [September 7, 2018, 9:48am UTC](https://discuss.elastic.co/t/can-i-add-suggest-array-for-autosuggestion-with-in-logsatash/147687/1 "2018-09-07T09:48:59Z")

</div>

Hello, could someone please tell me if I can add the suggest array using logstash which initially I used to add using curl -X PUT "localhost:9200/assessment\_kit/\_doc/1?refresh" -H "Content-Type:application/json" -d { "suggest": ["value1", " value2"]} ?

I need to get these value from one of my field of a table in my mysql database.

For example - I have a table in mysql database named "candidates" . This table contains a field "candidate\_name" which has the candidates name in it. I want the candidates name to be indexed as my suggest array so that I can suggest them for autosuggestion in frontend. Am i making any sense?

---

<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:** [October 5, 2018, 9:49am UTC](https://discuss.elastic.co/t/can-i-add-suggest-array-for-autosuggestion-with-in-logsatash/147687/2 "2018-10-05T09:49:20Z")

</div>

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