Skip to content

Fuzzy search with underscore returns wrong results #7694

Description

@gaoliang

Describe the bug
Fuzzy search with underscore returns wrong results

Expected behavior
Fuzzy search with underscore should match underscore exactly

Acutally behavior
The query treats the underscore as an arbitrary single-character match in SQL LIKE.
For example, when search 'test_*', got both 'test23' and 'test_1'
image

How to Reproduce
create config with data-id 'test23' and 'test_1', then search with 'test_*'

Metadata

Metadata

Assignees

No one assigned

    Labels

    expiredNo active for a long time

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions