There are no Dgraph flags required to enable wildcard search. If wildcard is enabled in record search for an attribute, and is also enabled for value search, the Dgraph process automatically enables the use of the asterisk operator (*) in appropriate search queries.
The following considerations apply to wildcard search queries that contain punctuation, such as abc*.d*f:
The Dgraph process rejects and does not process queries that contain only wildcard characters and punctuation or spaces, such as *., * *. Queries with wildcards only are also rejected.
The maximum number of matching terms for a wildcard expression is 100 by default. You can modify this value with the data domain configuration flag, --wildcard-max.
In case of wildcard search with punctuation, you may want to increase --wildcard-max, if you would like to increase the number of returned matched results. You can specify the value for this flag when creating a data domain profile: endeca-cmd --put-dd-profile --wildcard-max 110.