fixes search wildcards for elasticsearch