属性 类型字符串的 OrientDB 图中的非法字符

Illegal characters in OrientDB graph for property-type string

我用的是图形版的OrientDB。现在我创建了一个无模式 class,我想在其中索引一个变量。这个变量需要先变成 属性 。但是当我尝试创建这个 属性 - 字符串类型(或二进制,或其他)时 - 它响应:

com.orientechnologies.orient.core.exception.OSchemaException: The database contains some schema-less data in the property 'clazz.clazz_name' that is not compatible with the type STRING. Fix those records and change the schema again [ONetworkProtocolHttpDb]

所以我需要修复一些东西,但是什么?变量变成 属性 的哪些字符是非法的,以便它可以被索引? (顺便说一句,列表也不是一个选项)

我确实制造了一个问题。 我创建了一个 super-class,其中必须创建 属性。其中一个子 classes 插入了一个列表而不是字符串。所以在查询子类型

的所有顶点时
final Iterable<Vertex> iterable = this.graph.getVerticesOfClass("clazz");

我在看到 OLinkedList 的地方按 vertex.getProperty("clazz_name").getClass().getName() 打印了所有类型的 clazz_name。重新插入这些顶点解决了我的问题。