Completion field type
editCompletion field type
editTo use the completion
suggester, map the field from
which you want to generate suggestions as type completion
. This indexes the
field values for fast completions.
response = client.indices.create( index: 'music', body: { mappings: { properties: { suggest: { type: 'completion' } } } } ) puts response
PUT music { "mappings": { "properties": { "suggest": { "type": "completion" } } } }
Parameters for completion
fields
editThe following parameters are accepted by completion
fields:
The index analyzer to use, defaults to |
|
The search analyzer to use, defaults to value of |
|
|
Preserves the separators, defaults to |
|
Enables position increments, defaults to |
|
Limits the length of a single input, defaults to |