Привет! Я использую JanusGraph 0.3.x с ElasticSearch 6 в качестве бэкэнда индексирования. Я хочу сопоставить свое поле с geo_shape
, но оно выглядит эластичным, как geo_point
Я использую Java
mgmt.buildIndex("searchI", Vertex::class.java).addKey(fullText)
.addKey(hashTagText)
.addKey(geoPoint)
.addKey(geoShape)
.buildMixedIndex("search")
Я хочу, чтобы geoShape
было geo_shape
, и вот результат упругости
{"janusgraph":{"mappings":{"searchI":{"properties":{"all":{"type":"text"},"full_text":{"type":"text","copy_to":["all"]},"geo_point":{"type":"geo_point"},"geo_shape":{"type":"geo_point"},"hashtag_text":{"type":"text","copy_to":["all"]}}}}}}