# What is the better way to input values to completion suggestor?

**URL:** <https://discuss.elastic.co/t/what-is-the-better-way-to-input-values-to-completion-suggestor/136674>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 11:15am UTC](https://discuss.elastic.co/t/what-is-the-better-way-to-input-values-to-completion-suggestor/136674 "2018-06-20T11:15:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaljose123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaljose123/32/42205_2.png) [@amaljose123](https://discuss.elastic.co/u/amaljose123)\
**Post date:** [June 20, 2018, 11:15am UTC](https://discuss.elastic.co/t/what-is-the-better-way-to-input-values-to-completion-suggestor/136674/1 "2018-06-20T11:15:14Z")

</div>

is there any way to input multiple values to a completion suggestor dynamically?like taking the shingles generated by a shingle token filter as the input?

eg. this is the mapping for completion suggestor field used  
PUT test/\_mapping/faq  
{  
"properties": {  
"content" : {  
"type" : "completion"  
}  
}  
}  
This is the query used for indexing

PUT test/faq/1  
{  
"content" : ["machine learning"]  
}  
is there any way to input all combinations of "machine learning" to content field by using an analyzer? if i need to specify each combinations manually while indexing?

---

<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:** [July 18, 2018, 11:15am UTC](https://discuss.elastic.co/t/what-is-the-better-way-to-input-values-to-completion-suggestor/136674/2 "2018-07-18T11:15:16Z")

</div>

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