beetbox / beetbox/beets

Make fuzzy search ignore case by default

Open
#5,119 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

### Proposed solution

`string_match` method for `FuzzyQuery` should ignore case by making both pattern and value being matched against lowercase.

### Objective

#### Goals

Make fuzzy searching... *fuzzier*. I don't see a scenario where one would want a fuzzy search but care about capitalization.

Alternative would be to make this behavior toggleable in the config or to have a different prefix for case sensitive vs case-insensitive fuzzy matching.

#### Non-goals

N/A

#### Anti-goals

This could result in unexpected behavior if a user depends on capitalization during fuzzy searching, but I don't see why one would.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.