elasticsearch fuzzy query problem

Found a super annoying problem today.

There is a field logger_name in the index, which stores the class name:

"match":{"logger_name":"RequestMappingHandlerMapping"} can't be found

Later, it was found that this field was not segmented, and the wildcard character was used to query.

The weird thing is:

"wildcard":{"logger_name":"org*"}有数据

"wildcard":{"logger_name":"*RequestMappingHandlerMapping"}不行

It turns out that wildcard does not support uppercase, and I am also drunk

改成"wildcard":{"logger_name":"*requestmappinghandlermapping"}OK

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325773578&siteId=291194637