Hi,
I am currently using python to insert data into elasticsearch , before inserting it into elasticsearch and the same mapping is displayed when i run the curl request.
curl localhost:9200/index1/table1/_mapping
{"index":{"mappings":{"table1":{"properties":{"id":{"type":"long"},"bucket":{"type":"string","index":"not_analyzed"},"countries":{"type":"string"},"name_id":{"type":"string"},"name":{"type":"string","index":"not_analyzed"},"
I pasted part of mapping but what i wanted to point out is that my "name" field is not_analyzed. Thus when i use aggs it gives me distinct results when i am running the curl requests from terminal or via python.
But the same field "name" in my kibana setting is showcased as analyzed and grouping some variables which is incorrect in my case. I have deleted and reloaded the index but it's not working.