gpt4 book ai didi

mysql - org.apache.solr.common.SolrException : Document is missing mandatory uniqueKey field: id

转载 作者:行者123 更新时间:2023-11-29 03:48:26 25 4
gpt4 key购买 nike

在使用 Apache Solr 索引 MySQL 数据库表时,我收到以下错误:

org.apache.solr.common.SolrException: Document is missing mandatory uniqueKey field: id

这是什么意思?我该如何解决?

谢谢。

最佳答案

这意味着 Solr 正在尝试索引未指定字段 ID 的文档。在您的 schema.xml 中,您定义了一个 uniqueKey 字段,Solr 索引的每个文档都需要这样的 id 才能被索引。

关于mysql - org.apache.solr.common.SolrException : Document is missing mandatory uniqueKey field: id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17216994/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com