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

(Amal Jose) #1

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?

(system) #2

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