Skip to content

Wildcard queries on text fields don't obey rules for case sensitivity #71403

@markharwood

Description

@markharwood

A wildcard query for *Butterflies* should not match a text field with the value I like butterflies.

This used to be the behaviour before 7.8 but then this fix to wildcard queries on keyword fields inadvertently changed the behaviour for text fields. Now it always normalizes the search string due to changes in the common base class (StringFieldType).

The solution should be to only normalize the search string when the new case_insensitive query flag is set to true.

Metadata

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories>bugTeam:SearchMeta label for search team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions