【发布时间】:2019-05-02 17:40:21
【问题描述】:
我目前正在尝试为特定节点创建图形模式以对其进行查询。我尝试按照here 显示的示例进行操作,但遇到了标题中所述的错误。
已创建属性键
schema.propertyKey('id').Text().ifNotExists().create()
schema.propertyKey('name').Text().ifNotExists().create()
schema.propertyKey('age').Int().ifNotExists().create()
schema.propertyKey('location').Point().withGeoBounds().ifNotExists().create()
schema.propertyKey('gender').Text().ifNotExists().create()
schema.propertyKey('dob').Timestamp().ifNotExists().create()
使用的架构是
schema.vertexLabel("people_node").index("search").by("name").asText().by("gender").by("location").by("dob").ifNotExists().add()
schema.vertexLabel("people_node").index("people_node_index").materialized().by("id").ifNotExists().add()
schema.vertexLabel("people_node").index("people_node_index")secondary().by("age").ifNotExists().add()
示例数据
id, name , age, location , gender , dob
0, Betsy, 15 , POINT(10 15) , F , 1997-09-21T12:55:54+0400
遇到错误
java.lang.IllegalArgumentException: Cannot create search index, node workdload is not compatible
任何有关解决此问题的建议将不胜感激。
【问题讨论】:
标签: datastax datastax-enterprise