Sunday, October 25, 2020

Clementine music player - boolean search operators

Clementine was forked from Amarok 1.4 a while back, and ever since has been my favorite music library/player.

I'm using Clementine version 1.4 rc1 but I'm sure this feature in the stable version 1.3.1 as well: boolean search operators.


So far all I can get to work is OR, AND, -, and () inside the sub-playlist search field. The global search and Library search don't support any of this stuff. For example: 

(rating:3.5 OR rating:4 OR rating:4.5 OR rating:5) AND genre:rock AND artist:-audio

will filter your playlist down to just high rated songs of any genre containing the word "rock" like "Classic Rock", "Christian Rock", and plain old regular "Rock". Without the parenthesis that AND would only apply to the term "rating: 5" so it'll show all songs with rating between 3.5 and 4.5 of any genre, and only 5-star songs of a genre like "rock" or "Punk Rock" and so on. You'll get no 5-star Ska in that search, only lesser rated Ska. Moreover, the `artist:-` part means you'll be without any artist matching the substring "audio" so that means no Audioslave nor Audio Adrenaline


Like I said: this only works in the search field above each playlist (below the tab bar). It doesn't work in the library search or the global search.


This was first published 2020-10-25 but then I discovered the minus sign after failing with `!` and `NOT` and so on so I updated this post on 2023-03-28.