Duration Search

Tags: #<Tag:0x00007f756be6a388>

I am attempting to formulate a query that finds song length by a specific artist. I am getting incorrect results for both fields. There are 54 hits with neither of the criteria. Also, I am getting hits for 2 0r 3-second sound samples.

dur:184000 AND artist:“Led Zeppelin”

2 Likes

Hi! Make sure you are using the “Indexed search with advanced query syntax” and not “Indexed search”

https://musicbrainz.org/search?query=dur%3A184000+AND+artist%3A"Led+Zeppelin"&type=recording&limit=25&method=advanced

4 Likes

One small improvement could be if you want to have also results near the given length is to use the qdur (quantized duration) parameter which expects duration / 2000 (half the duration in seconds).

This will give you results near the queried duration (I’m not entirely sure, but I think +/- 2 seconds). So instead of dur:184000 you could use qdur:92 which gives more results:

https://musicbrainz.org/search?query=qdur%3A92+AND+artist%3A"Led+Zeppelin"&type=recording&limit=25&method=advanced

4 Likes

Thanks. I had wanted exact durations, but also want to narrow it to studio albums only.

1 Like