这个问题特别奇特!
发现过程:客户网站从2.3升级到2.4.2 p1版本,发现elasticsearch 正常,但是始终无法得到任何数据,重置并刷新索引也无效。
问题日志:
\"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 [image_label] in order to load field data by uninverting the inverted index. Note that this can use significant memory.\"}}},\"status\":400} at /www/wwwroot/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:632)"} []
因为客户这个站点是从M1升级过来的,一直无任何问题,本次升级到M2.4,PHP版本及其它均有所升级,一一排除问题所在