@danielmitterdorfer
Thank you very much for your help ,it is working now for me,
I have done mistakes in mapping file level
if i give above mapping it is working but my orginal mapping file will not working,
attched my document.json also
my mapping file is
{
"top_off_contract_opportunity": {
"_routing": {
"required": true
},
"date_detection": false,
"properties": {
"payload": {
"properties": {
"pohSpend": {
"include_in_all": false,
"store": true,
"type": "double"
},
"contractPriceRange": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"facilityId": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"quantity": {
"include_in_all": false,
"store": true,
"type": "double"
},
"organizationName": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"contractSource": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"csdFlag": {
"type": "boolean"
},
"vendorName": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"xchgFlag": {
"type": "boolean"
},
"purchaseUom": {
"search_analyzer": "default_search",
"analyzer": "default_index",
"type": "string"
},
"savingsOpportunity": {
"include_in_all": false,
"store": true,
"type": "double"
},
"contractExpiration": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"contractOrganizations": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"eboId": {
"include_in_all": false,
"store": true,
"type": "integer"
},
"unspscClassDescription": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"poMonth": {
"format": "dateOptionalTime||yyy-MM-ddHH:mm:ss||yyyy-MM-dd||MM-dd-yyyy",
"store": true,
"type": "date"
},
"priceFrom": {
"include_in_all": false,
"store": true,
"type": "double"
},
"partDescription": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"unspscCode": {
"norms": {
"enabled": false
},
"analyzer": "keyword",
"store": true,
"type": "string"
},
"vendorPartNumber": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"buyerPrice": {
"include_in_all": false,
"store": true,
"type": "double"
},
"facilityName": {
"search_analyzer": "default_search",
"norms": {
"enabled": false
},
"analyzer": "default_index",
"store": true,
"type": "string",
"fields": {
"raw": {
"index": "not_analyzed",
"type": "string"
}
}
},
"priceTo": {
"include_in_all": false,
"store": true,
"type": "double"
},
"providerKey": {
"norms": {
"enabled": false
},
"analyzer": "keyword",
"store": true,
"type": "string"
}
}
}
}
}
}
using above mapping file not working ,but if i give
{
"top_off_contract_opportunity": {
"_routing": {
"required": true
}
}
}
working fine
also one small doubt _id is mandarory to give ,es will automatic will take na?