我已经在Magento 2安装中安装了微笑弹性套件模块,但出现此错误,
我正在使用Magento 2.3.0运行MAMP和弹性搜索7.0.1
[
{
"type": "illegal_argument_exception",
"reason": "In Shingle TokenFilter the difference between max_shingle_size and min_shingle_size (and +1 if outputting unigrams) must be less than or equal to: [3] but was [9]. This limit can be set by changing the [index.max_shingle_diff] index level setting."
}
]
答案 0 :(得分:0)
在文档中对其进行了说明:
shingle token filter和index settings reference
索引级别设置index.max_shingle_diff控制max_shingle_size和min_shingle_size之间的最大允许差异。
因此,如果要允许差异大于3,则必须通过更新设置API或在创建索引时更新索引设置中的max_shingle_diff。
默认值3是一个保守值,以避免索引爆炸:)
示例:
PUT /<yourindex>/_settings
{
"index" : {
"max_shingle_diff" : 10
}
}