Skip to content

Make wildcard conditions case-insensitive - #37

Merged
royduin merged 2 commits into
rapidez:masterfrom
claudio-ferraro:feature/case-insensitive-wildcard
Sep 30, 2026
Merged

royduin merged 2 commits into
rapidez:masterfrom
claudio-ferraro:feature/case-insensitive-wildcard

Conversation

@claudio-ferraro

@claudio-ferraro claudio-ferraro commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

The LIKE, NOT LIKE, STARTS_WITH and ENDS_WITH operators are parsed into a wildcard query on the .keyword field, which is case-sensitive. A condition like name LIKE cat didn't match products named "Cat ...".

This adds case_insensitive: true to these wildcard queries (supported since Elasticsearch 7.10 and in OpenSearch). LikeParser now uses the same value notation as the other wildcard parsers.

Note: the query builder stores the generated query in the entry's value on save and reuses it when rendering. Existing query builders therefore only pick this up after the entry is re-saved or the stored value is removed.

Also removed the property.phpDocType PHPStan ignore rule; it no longer matches any error with the latest PHPStan, which made the analyse workflow fail.

@royduin
royduin merged commit 3792e2e into rapidez:master Sep 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants