in utils/usergrid-util-python/index_test/index_test_mixed_batch.py [0:0]
def get_type_mapping(type_name):
return {
type_name: {
"_routing": {
"path": "entityId",
"required": True
},
"properties": {
"entityId": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"entityVersion": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"entityType": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"applicationId": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"nodeId": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"edgeName": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"entityNodeType": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"edgeTimestamp": {
"type": "long",
"doc_values": True
},
"edgeSearch": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"fields": {
"type": "nested",
"properties": {
"name": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
},
"boolean": {
"type": "boolean",
"doc_values": True
},
"long": {
"type": "long",
"doc_values": True
},
"double": {
"type": "double",
"doc_values": True
},
"location": {
"type": "geo_point",
"lat_lon": True,
"geohash": True,
"doc_values": True
},
"string": {
"type": "string",
"norms": {
"enabled": False
},
"fields": {
"exact": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
}
}
},
"uuid": {
"type": "string",
"index": "not_analyzed",
"doc_values": True
}
}
}
},
"_all": {
"enabled": False
}
}
}