我已经在elasticsearch中建立了索引的titan数据,它工作良好并且索引良好,但是当我在使用REST API的elasticsearch中查看数据时。列/属性名称看起来不同于泰坦。匹配由Titan索引的elasticsearch数据
,比如我有索引的年龄,同时将数据插入到泰坦
final PropertyKey age = mgmt.makePropertyKey("age").dataType(Integer.class).make();
mgmt.buildIndex("vertices",Vertex.class).addKey(age).buildMixedIndex(INDEX_NAME);
,如果我在elasticsearch
{
"_index" : "titan",
"_type" : "vertices",
"_id" : "sg",
"_score" : 1.0,
"_source":{"6bp":30}
},
看到相同的观察数据,我可以理解“6BP”是年龄。这个转换是如何完成的?我如何解码它?
我的目标是将数据插入ElasticSearch上的Titan索引。用户查询应该使用ElasticSearch客户端搜索ElasticSearch,因为我们需要ElasticSearch支持的更多搜索功能,如果搜索到数据,则使用Titan查询获取相关结果。