我正在使用启用了搜索的 Datastax Enterprise 4.8.0。我正在尝试将 dynamicFields 与地图集合一起使用,但无法弄清楚。这里有更多细节。
[cqlsh 5.0.1 | Cassandra 2.1.9.791 | DSE 4.8.0 | CQL spec 3.2.0 | Native protocol v3]
我有一个启用了搜索的 3 个节点的集群。我正在使用地图字段properties map<text, text>
,现在我想使用 dynamicField 定义从 datastax solr 中搜索它。
在 schema.xml 中,我有以下内容,但它不起作用:
<dynamicField name="properties*" type="text" indexed="true" stored="true" />
在 system.log 中,我看到如下错误:
WARN [http-0.0.0.0-8983-6] 2016-03-01 18:07:02,075 Cql3CassandraRowReader.java:162 - Cannot find dynamic field : [description], please make sure [properties] is being prepended/appended accordingly to build a correct dynamic field name. Did you mean propertiesdescription? descriptionproperties?
我还没有弄清楚如何更改字段定义以解决警告。