I want to index document keywords as array datatype, not a string, something like: keywords:['key1', 'key2',...]
and from elasticsearch documentation
you can have keywords field as a string:
PUT my_index
{
"mappings": {
"_doc": {
"properties": {
"tags": {
"type": "keyword"
}
}
}
}
}
what should I do?