By default, value search allows wildcards at the end of the search
term (such as
gua* for the search term
guarantee).
To enable wildcards elsewhere in a search
term, you must set the
mdex-config_EnableValueSearchWildcard attribute in the
Global Configuration Record (GCR) to
true, for the standard attribute in your records.
The following examples illustrate how the Dgraph treats wildcards in
value searches:
- A wildcard search at the end
of the search term, such as
gua*, is conducted by the Dgraph for all standard
attributes for which value search is enabled.
- Wildcard searches of type
*uara and
g*ara are conducted by the Dgraph only if the GCR
attribute
mdex-config_EnableValueSearchWildcard is set to
true for the corresponding standard attribute on your
records. The default value for this attribute is
false, meaning that wildcard search is disabled for
value search.