JanusGraph 地理指数

JanusGraph Geo Index

我在第一次使用 JanusGraph 查询

调用 returns 值时有这种行为
JG.query().has("geo_shape", Geo.WITHIN,
            Geoshape.circle(12, 13, 100.0)).vertices().count()

而下一行没有 return 结果!

 val c = JG.traversal().V().has("geo_shape",
            within(Geoshape.circle(12, 13, 100.0))).count().next()

根据 query examples,您的查询应该更像这样:

JG.traversal().V().has("geo_shape",
    geoWithin(Geoshape.circle(12, 13, 100.0))).count().next()