文档

使用通配符查询时出现length of field value is longer than 32 for the [WILDCARD_QUERY] query异常

更新时间:

当使用通配符查询时出现length of field value is longer than 32 for the [WILDCARD_QUERY] query异常时,请确保查询字符串的长度不超过32字节。

现象

使用通配符查询时出现如下异常:

length of field value is longer than 32 for the [WILDCARD_QUERY] query

原因

带有通配符的字符串长度超过32字节。

解决方案

使用通配符查询时,要匹配的值可以是一个带有通配符的字符串,带有通配符的字符串长度不能超过32字节,请替换查询字符串。