Hey,
Thanks, @dadoonet for your kind reply my rearranged question is below. Have a look at it.
I am facing a problem with elastic search mapping. currently, my elastic search version is 1.7.2. When I index my data in a cluster it workes perfectly. But when I want to map it for search purposes it gives me an error. Can you guys help me out to resolve this? You can see my script below.
PUT {
"index": "mygoto",
"type": "1",
"body": {
"1": {
"_source": {
"properties": {
"enabled": true
}
},
"properties": {
"featured": {
"type": "string",
"index": "not_analyzed"
},
"tiny_url": {
"type": "string",
"index": "not_analyzed"
},
"dealer_id": {
"type": "string",
"index": "not_analyzed"
},
"price": {
"type": "integer"
},
"display_status": {
"type": "integer"
},
"CreatedDate": {
"type": "date"
},
"ModifiedDate": {
"type": "date"
},
"ADID": {
"type": "integer"
},
"postalcode": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
},
"location": {
"type": "geo_point",
"geohash": true,
"geohash_prefix": true
},
"f6": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f7": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f5": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f17": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f12": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f15": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f1": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f10": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
},
"f30": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string",
"index": "analyzed",
"analyzer": "keyword_lowecase"
}
}
}
}
}
}
}