Hello experts,
I'm using ES v7. I noticed there's a fantastic type called 'search_ar_you_type' can help me with auto-completion. The samples from doc is map the field to this type like:
{
"mappings": {
"properties": {
"my_field": {
"type": "search_as_you_type"
}
}
}
}
As I don't want to change my current index mapping, the property type is "text", can I add a subfield with 'search_as_you_type' type? like this
{
"mappings": {
"properties": {
"my_field": {
"type": "text",
"fields": {
"sayt": {
"type": "search_as_you_type"
}
}
}
}
}
}
I ask this because I know 'search_as_you_type' itself also add subfields like '_2gram' and etc, which are like subfield of subfield, and I'm not sure this works well or not.
Thanks