Skip to content

Implement ignoring filter case-sensitivity #1535

@Kebechet

Description

@Kebechet

When we want to filter some string fields we would like to specify on BE when we call
queryOptions.Filter.ApplyTo option to ignore case-sensitivity of values so that with
word eq dog we can match records Dog, dog, DoG

It would probably make sense to specify this as a part of ApplyTo or in ODataQueryOptions that is used for filter's ApplyTo

Related discussions:

Are there any reasons this is not yet implemented?

Workoarounds:

  • in the query use toLower or toUpper. E.g.
    • ?$filter=tolower(Name) eq 'john'
    • ?$filter=contains(tolower(Name),'john')
  • in EF using a case-insensitive collation (ends with CI... on SQL Server, or NOCASE on SQLite)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions