* very slow queries on big indexes.
* <p>
* Default: false.
*/
public void setAllowLeadingWildcard(boolean allowLeadingWildcard) {
AllowLeadingWildcardAttribute attr = getQueryConfigHandler().getAttribute(
AllowLeadingWildcardAttribute.class);
attr.setAllowLeadingWildcard(allowLeadingWildcard);
// uncomment code below when deprecated query parser attributes are removed
// getQueryConfigHandler().set(ConfigurationKeys.ALLOW_LEADING_WILDCARD,
// allowLeadingWildcard);
}