Closed BrianFreemanAtlanta closed 2 years ago
Elasticsearch has an option allow_leading_wildcard
that allows using leading wildcards. So I can't make it fail parsing on this syntax. Would need to add a query validation option to check for this case.
Added an AllowLeadingWildcards
option in the validator. Thanks @BrianFreemanAtlanta!
Per Lucene specs 2.9.4.
When I parse a search
*hello
or?hello
and validate the query they both come back as "valid" queries.