<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Search &#x2F; Filter syntax - Exclude &#x2F; NOT option?]]></title><description><![CDATA[<p dir="auto"><strong>Is there a search option for excluding results from the search - a "NOT" option?  e.g. "NOT artist:U2</strong> I've experimented with different syntaxes and haven't found anything that works...</p>
<p dir="auto">In general:<br />
I'd like to better understand what options are available for searching a collection. The tooltip displayed for the search field (screenshot below) shows some of the possibilities, but not all.</p>
<p dir="auto">I've discovered a few other bits of syntax in forums and by experimenting.  Here's what I've found (shown with examples):</p>
<ul>
<li>artist: u$ (find all artists starting with the letter "u")</li>
<li>title: walk$ (similar but searches the title field)</li>
<li>artist: uddy (will NOT find artists with "Muddy" or "Buddy") - search term must match the <em>start</em> of a word...but not the whole word. Searching for "artist:guy" will find Buddy Guy.</li>
<li>albumartist: cro - searches album artist field.</li>
<li>rating:2 - matches songs with that # of stars. can use half values (e.g. 2.5). Searching for "rating:0" and "rating:null" seem to return the same results.</li>
<li>bitrate:&lt;=200 - bitrate search</li>
<li>genre:folk$ - would find genres "Folk', "Pop Folk", "Folk Rock", etc.</li>
<li>grouping:vocal$ - searches the Grouping field. This would find "Vocal" and "VocalJazz", but not "HasVocal". (I use groupings a lot...)</li>
<li>comment:"#1 single" - searches comment field</li>
<li>length:&gt;5:00 - searches by time length of track</li>
<li>playcount:&gt;5 - # of times played field</li>
<li>year:&gt;2011</li>
</ul>
<p dir="auto">There are other fields called out in the tooltip, but I find examples a good way to learn.</p>
<p dir="auto">What other types of searches are there?  Thought we'd get a topic going here as documentation is minimal and the forums are often the best way to learn...</p>
<p dir="auto"><strong>Is there a search option for excluding results from the search - a "NOT" option? e.g. "NOT artist:U2</strong></p>
<p dir="auto">Thanks in advance!</p>
<p dir="auto"><img src="/assets/uploads/files/1713764663725-smp-search-options.png" alt="SMP Search Options.png" class=" img-fluid img-markdown" /> albumartist: cro</p>
]]></description><link>https://forum.strawberrymusicplayer.org/topic/1496/search-filter-syntax-exclude-not-option</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 08:15:32 GMT</lastBuildDate><atom:link href="https://forum.strawberrymusicplayer.org/topic/1496.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Apr 2024 06:21:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search &#x2F; Filter syntax - Exclude &#x2F; NOT option? on Tue, 28 May 2024 06:28:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2395">@econnolly</a> That helped. I was fighting with all the "!=" and the suggestions in the pop-up tip, but actually they don't always work. e.g. "year:!=2" didnt work to filter out year 2xxx where "year:-2" does. I hadn't even thought to use the "-" minus sign, but it turns out to be far superior. Also the $ does nothing as far as I can tell there are no wild cards.</p>
<p dir="auto"><em>"genre:rock -hard -indie -pop -art comment:-amazon year:-20"</em></p>
<p dir="auto">basically gives me all the "rock" genre with any "hard rock", "indie rock", "pop rock", and "art rock" filtered out, while also filtering out anything with "amazon" in the comment and sticking to 19xx for the year.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3658</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3658</guid><dc:creator><![CDATA[mdkb]]></dc:creator><pubDate>Tue, 28 May 2024 06:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to Search &#x2F; Filter syntax - Exclude &#x2F; NOT option? on Wed, 01 May 2024 02:46:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2249">@mncroc</a> I think I see the issue--there are two different search boxes, and the minus sign works in one of them but not the other.<br />
<img src="/assets/uploads/files/1714531568377-ae5c99ea-caeb-4a13-ab5b-beba760ccf07-image.png" alt="ae5c99ea-caeb-4a13-ab5b-beba760ccf07-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3589</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3589</guid><dc:creator><![CDATA[econnolly]]></dc:creator><pubDate>Wed, 01 May 2024 02:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to Search &#x2F; Filter syntax - Exclude &#x2F; NOT option? on Mon, 29 Apr 2024 14:59:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2395">@econnolly</a> Have you tested and gotten this to work?</p>
<p dir="auto">I'm running SMP 1.0.23 on Windows 11 and it doesn't work for me. Searching with or without the minus sign make no difference.</p>
<p dir="auto">e.g. searching for these all give the same results that include all tracks off Greta Van Fleet's Anthem of the Peaceful Army album:<br />
greta anthem<br />
greta album:anthem<br />
greta album:"anthem"<br />
greta album:-"anthem"<br />
greta album: -"anthem"<br />
greta album: -anthem<br />
greta album: !"anthem"<br />
greta album: !anthem<br />
greta -anthem<br />
greta !anthem<br />
greta NOT (anthem)<br />
greta NOT "anthem"</p>
<p dir="auto"><em><strong><em>Playing around a bit more it looks like all special characters are ignored.  e.g. Searching for "anthem</em>^%$----#" gives the same results as searching for "anthem".</strong></em>*</p>
<p dir="auto">Screenshot:</p>
<p dir="auto"><img src="/assets/uploads/files/1714402125437-ds023.png" alt="DS023.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/1">@jonas</a> anything you can add or confirm on this topic? Thanks in advance!</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3586</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3586</guid><dc:creator><![CDATA[mncroc]]></dc:creator><pubDate>Mon, 29 Apr 2024 14:59:22 GMT</pubDate></item><item><title><![CDATA[Reply to Search &#x2F; Filter syntax - Exclude &#x2F; NOT option? on Fri, 26 Apr 2024 18:46:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.strawberrymusicplayer.org/uid/2249">@mncroc</a> It's a minus sign. For example,</p>
<p dir="auto">the beatles album:-"abbey road"</p>
<p dir="auto">returns all songs by The Beatles (or that mention the Beatles in the tags) except the ones on Abbey Road.<br />
The quotes are important if there's a space; otherwise, you'll get all songs that contain "the," "beatles," and "road" somewhere in the tags but don't have "abbey" in the album.</p>
]]></description><link>https://forum.strawberrymusicplayer.org/post/3578</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/3578</guid><dc:creator><![CDATA[econnolly]]></dc:creator><pubDate>Fri, 26 Apr 2024 18:46:41 GMT</pubDate></item></channel></rss>