SugarCRM 8.0.1未识别Elasticsearch 5.6.9索引中总字段限制的增加
在SugarCRM 8.0.1中,我试图安排完整的系统索引,但在SugarCRM错误日志中遇到以下错误:SugarCRM 8.0.1未识别Elasticsearch 5.6.9索引中总字段限制的增加,
Warning: implode(): Invalid arguments passed in /data/phpspider/zhask/webroot/tpl/detail.html on line 45
,,在SugarCRM 8.0.1中,我试图安排完整的系统索引,但在SugarCRM错误日志中遇到以下错误: [FATAL] Elasticsearch request failure: Limit of total fields [1000] in index [my_index] has been exceeded 我已连接到另一台机器上运行Elasticsearch 5.6.9的服务。在那里,我运行了以下命令以增加服务的字段限制: curl -XPUT 'localhost:9200/my_
[FATAL] Elasticsearch request failure: Limit of total fields [1000] in index [my_index] has been exceeded
我已连接到另一台机器上运行Elasticsearch 5.6.9的服务。在那里,我运行了以下命令以增加服务的字段限制:
curl -XPUT 'localhost:9200/my_index/_settings' -H 'Content-Type: application/json' -d'
{
"index.mapping.total_fields.limit": 10000
}
'
我知道该命令被卡住了,因为运行该命令后,我得到以下结果:
{"acknowledged":true}
如果我运行以下命令
curl-XGET'localhost:9200/my\u index/\u settings?pretty'
…这是返回内容的一部分:
"my_index" : {
"settings" : {
"index" : {
"mapping" : {
"total_fields" : {
"limit" : "10000"
},
看起来一切正常,但在再次尝试运行完整的系统索引后,我仍然在SugarCRM错误日志中返回相同的错误。
我是否缺少任何步骤来确保SugarCRM识别新的字段限制?我试过运行一个快速修复&重建和刷新我在Sugar中的缓存,但没有效果
我还知道重新启动弹性搜索服务是没有用的,因为我正在运行的增加新字段限制的PUT请求只适用于当前运行的服务;如果我重新启动它,我将不得不再次输入put请求,因此这将是多余的。您确定Sugar重新创建索引时丢失的不仅仅是设置吗 我会在
config\u override.php中尝试一下:
$sugar_config['full_text_engine']['Elastic']['index_settings']['default']['index.mapping.total_fields.limit'] = 10000;
不过,我不太确定这是正确的说法
受启发,你的措辞非常完美,完全解决了我的问题;非常感谢。将该行添加到config\u override.php
是处理此问题的更好方法,而不是使用RESTAPI,因为现在不会在每次重新启动Elasticsearch服务时丢失该设置。