I have indexed a pathname field as follows:
"file_name" : {
"type": "string",
"analyzer": "pathname_analyzer",
"search_analyzer": "keyword",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
}
While I'm able to search file_name.raw: "exact pathname"
in Kibana discover, I cannot build a term aggregation visualization because the field_name.raw
is not showed. Only file_name is, and I cannot create a term aggr because the field is analyzed.
Am I doing something wrong? Thanks in advance.