Add WildcardQuery functionality