Can i add suggest array for autosuggestion with in logsatash

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?

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