Variable gives None in preview values

Hello,

Case 1
I found that if the mapping in ElasticSearch looks like below, I am able create a variable
“host”: {
“type”: “keyword”
}

Case 2
However, if the mapping in ElasticSearch looks like example below, the variable I create returns None for preview,
“host”: {
“type”: “text”,
“fields”: {
“keyword”: {
“type”: “keyword”,
“ignore_above”: 256
}
}
}

Why is that??
If my field is like case 2, how can create a variable use
{“find”:“terms”,“field”:“host”}

for the case2,
I solved this problem by using {“find”:“terms”,“field”:“host.keyword”}

1 Like

I solved my problem with this method too. Thank you!