网站首页 / 资讯 / Magento教程/ Magento2.x教程

M2奇葩小知识:elasticsearch搜索无结果及相关异常

作者:admin

完整错误日志:

 main.CRITICAL: Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [samples_title] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"moem_product_8_v4","node":"TWVRx3moTheJeTIBQ0d5tg","reason":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [samples_title] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [samples_title] in order to load field data by uninverting the inverted index. Note that this can use significant memory.","caused_by":{"type":"illegal_argument_exception","reason":"Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [samples_title] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}}},"status":400} in /www/wwwroot/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:693
标签: 搜索无结果 elasticsearch
上一篇:M2奇葩小知识:后台用户管理里面无用户
下一篇:M2如何在不影响访问的情况下禁止原始图片被访问及下载

相关内容

最近更新
相关产品
综合服务邮箱: magento2#foxmail.com