Hello,
I'm having some trouble playing around with a custom analyzer. I created an index with a custom analyzer to map IT to Italy, and reindexed to the new index. The search features work, I can search "Italy" and it finds the documents that contain "IT". However, I want to know if the data can/should be manipulated after the reindex to reflect the change. All my documents still show "IT". I know I can do this with an ingest pipeline, but I'm wondering why it doesn't work with the analyzers.
PUT kibana_sample_data_flights6
{
"settings": {
"analysis": {
"char_filter": {
"IT_filter": {
"type": "mapping",
"mappings": "IT => Italy"
}
},
"analyzer": {
"content_anaylzer": {
"tokenizer": "keyword",
"char_filter": ["IT_filter"]
}
}
}
},
"mappings": {
"properties": {
"DestCountry": {
"type": "text",
"analyzer": "content_anaylzer"
}
}
}
}
POST _reindex
{
"source": {
"index": "kibana_sample_data_flights"
},
"dest": {
"index": "kibana_sample_data_flights6"
}
}