i'm facing a problem that how to set "index" : "not_analyzed" globally for the elastic search for string values in mapping json format file so that it will not get tokenized when making reports. Currently i have made that check individually. But,when a new property comes in it creates problem. (using elastic search version 1.7.2)
For example :- If i'm giving a new string field say address, when a value like "bangalore india" comes in, then it will get treated as 2 sepparate values as "Bangalore" and "india" while making reports.
Here is a sample json mapper file format that i'm using. Let me know how i can set it globally for the same..
{
"user" : {
"_index" : {
"enabled" : true
},
"_id" : {
"index": "not_analyzed",
"store" : "yes"
},
"properties" : {
"id" : {
"type" : "long"
},
"name" : {
"type" : "string",
"index" : "not_analyzed"
},
"presentValue" : {
"type" : "string",
"index" : "not_analyzed"
},
"dateOfBirth" : {
"type" : "date"
}
}
}
}