This topic describes the problem description, cause, and solution of the "length of field value is longer than 32 for the [WILDCARD_QUERY] query" exception when you query data by using wildcard query.

Problem description

The following exception occurs when you query data by using wildcard query:
length of field value is longer than 32 for the [WILDCARD_QUERY] query

Cause

A string that contains wildcards is greater than 32 bytes in length.

Solution

When you query data by using wildcard query, the value to be matched can be a string that contains wildcards and is smaller than or equal to 32 bytes in length.