我在启用搜索的情况下使用Datastax Enterprise 4.8.0。我试图将dynamicFields与地图集合一起使用,但无法弄清楚。这里有更多细节。在datastax企业搜索中使用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?
我还没有想出如何改变字段定义来解决警告。
不能相信我忽视了。谢谢!这让我走上了正轨 – LHWizard