Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy Search Plugin not returning sensible results. #5638

Open
kitizz opened this issue Feb 19, 2025 · 2 comments
Open

Fuzzy Search Plugin not returning sensible results. #5638

kitizz opened this issue Feb 19, 2025 · 2 comments

Comments

@kitizz
Copy link

kitizz commented Feb 19, 2025

Problem

Running this command in verbose (-vv) mode:

$ beet -vvv list '%%Pompeya'

Led to this problem:

user configuration: /home/user/.config/beets/config.yaml
data directory: /home/user/.config/beets
plugin paths:
fetchart: google: Disabling art source due to missing key
Sending event: pluginload
library database: /home/user/.../beets_library_database.blb
library directory: /.../music_raw
Sending event: library_opened
Parsed query: AndQuery([AnyFieldQuery('Pompeya', ('artist', 'title', 'comments', 'album', 'albumartist', 'genre'), FuzzyQuery)])
Parsed sort: NullSort()
Taylor Swift - 1989 (Taylor’s version) (deluxe) - Style (Taylor’s version)
Taylor Swift - Red (Taylor’s version) - 22 (Taylor’s version)
Sending event: cli_exit

Whereas I got the expected result from this command:

beet -vvv list 'Pompeya'

Output:

<skip config info>
Parsed query: AndQuery([AnyFieldQuery('Pompeya', ('artist', 'title', 'comments', 'album', 'albumartist', 'genre'), SubstringQuery)])
Parsed sort: NullSort()
Pompeya - Real - Anyway
Pompeya - Real - Pasadena
Pompeya - Real - Ooooo (Cry About It)
Pompeya - Real - To the Orient
Pompeya - Real - Real
Pompeya - Real - Liar
Pompeya - Real - Hysteria
Pompeya - Real - Tell Me, Tell Me
Pompeya - Real - To a Kid
Pompeya - Real - Last One
Sending event: cli_exit

Setup

  • OS: Debian 12
  • Python version: 3.13.2
  • beets version: 2.2.0
  • Turning off plugins made problem go away (yes/no): NA

My configuration (output of beet config) is:

# --------------- Main ---------------

library: /home/user/.../beets_library_database.blb
directory: /.../music_raw

# --------------- Plugins ---------------

plugins: [fuzzy]
fuzzy:
    prefix: '%%'
    threshold: 0.7
@arsaboo
Copy link
Contributor

arsaboo commented Feb 19, 2025

Can you try with the default prefix?

@kitizz
Copy link
Author

kitizz commented Feb 19, 2025

Ah sorry, should have mentioned that. I also tried with the default prefix of "~". I was using a different prefix to double check it wasn't my terminal being weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants