【问题标题】:using dynamicFields with datastax enterprise search将 dynamicFields 与 datastax 企业搜索结合使用
【发布时间】:2016-06-14 10:04:44
【问题描述】:

我正在使用启用了搜索的 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?

我还没有弄清楚如何更改字段定义以解决警告。

【问题讨论】:

    标签: solr datastax-enterprise cassandra-2.1


    【解决方案1】:

    您是如何插入地图值的?

    使用 CQL,在每个映射对的第一个组件中使用基本名称作为前缀或后缀将数据插入映射。

    在此处查看详细信息:https://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/srch/srchDynFlds.html

    【讨论】:

    • 不敢相信我忽略了这一点。谢谢!这让我走上了正确的道路
    猜你喜欢
    • 1970-01-01
    • 2013-01-22
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多