After creating indices for edge properties, embedded ElasticSearch does not index all fields. Instead, only some fields are indexed.
Example of ES not storing the "_label" property in an established index:
Titan Edge (multiple properties):
{
"weight": {
"type": "string",
"value": "0.20000000298023224"
},
"_edgeId": {
"type": "string",
"value": "4V-g-2a"
},
"_id": "4V-g-2a",
"_type": "edge",
"_outV": 16,
"_inV": 4,
"_label": "created"
}
ES index for edges ("_label" index exists):
"edge": {
"properties": {
"_edgeId": {
"type": "string"
},
"_label": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs"
},
"weight": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"index_options": "docs"
}
}
}
ES search result ("_label" property not stored):
{
"_index" : "dendrite-dev-8",
"_type" : "edge",
"_id" : "4V-g-2a",
"_score" : 1.0, "_source" : {"weight":"0.20000000298023224","_edgeId":"4V-g-2a"}
}