# Beter Scoring for MusicBrainz Search

**URL:** https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695
**Category:** General Discussion
**Created:** [August 22, 2024, 6:25pm UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695 "2024-08-22T18:25:31Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![zerothbase](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/e9bcb4/32.png) [@zerothbase](https://community.mp3tag.de/u/zerothbase)
#### Post date: [August 22, 2024, 6:25pm UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/1 "2024-08-22T18:25:31Z")

</div>

First off, I love your software.  
However, the list of matching albums using Tag Sources like MusicBrainz, is often quite long to choose from. I know all my CDs are US versions, and I usually have all the songs on a give CD.  
I assume that when i'm searching Tag Sources by Artist and Album, that Mp3tag is generating the score.  
Is there any way you can add a feature to tweak that score a little? Like increase a score if a listing has matching fields, like Country Code, number of tracks (based upon number selected), or format (e.g. CD).  
Currently, I sort by Country Code then Tracks and then go to the section that has those matching criteria. But given the criteria that I know i'm looking for, there really should only be 1 or 2 albums that get 100% score.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 22, 2024, 9:43pm UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/2 "2024-08-22T21:43:40Z")

</div>

> [@zerothbase](#):
>
> that Mp3tag is generating the score.

I don't think that Mp3tag is generating this score.

If you refer to this score  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/2/3/23c2853e8ba0b54082e23de7f298f3ff1b2cb0a9.png)  
then it will be returned from the search server of the source itself: MusicBrainz.  
This score will be builded with the given information.

What you can try is to use one of the "[MusicBrainz expanded](https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909)" scripts where you can search more specifically for ASIN, Barcode, Catalog Number or even directly by MB Album ID  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/3/8/385e2be4d898c4883426bd2f00279332442d4bd7.png)

---

<div class="post-metadata">

### Author: ![rboss](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rboss](https://community.mp3tag.de/u/rboss)
#### Post date: [August 23, 2024, 1:03am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/3 "2024-08-23T01:03:18Z")

</div>

> [@LyricsLover](#):
>
> I don't think that Mp3tag is generating this score.

It is not.  
The `Score` column is populated with values returned by MusicBrainz API. You can find more info about this field in this [MusicBrainz documentation](https://musicbrainz.org/doc/Canonical_MusicBrainz_data) page.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 23, 2024, 6:21am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/4 "2024-08-23T06:21:24Z")

</div>

> [@zerothbase](#):
>
> Is there any way you can add a feature to tweak that score a little? Like increase a score if a listing has matching fields, like Country Code, number of tracks (based upon number selected), or format (e.g. CD).

Currently we can only use max. 3 search fields for Web Sources Scripts in Mp3tag.  
If you use the "MusicBrainz expanded" version with "Search by Artist + Album" I could try to add 1 more search criterion.

![image](https://community.mp3tag.de/uploads/default/original/3X/0/4/04190ddf52632d2fe740c8ee7a14c8c83b146b93.png)

What would be the value that reduces the number of search results the most?  
Is that the number of tracks of your local album (based upon number selected)?  
Or is that the media format, like "CD"?  
Or is that the (release-) country, like "US"?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 23, 2024, 6:34am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/5 "2024-08-23T06:34:32Z")

</div>

@rboss Yes, the [MusicBrainz SOLR-Search Server](https://musicbrainz.org/doc/Search_Server) returns the values visible in the list of search results, including the value in the second column `Score`.

According to some developer answers at MusicBrainz, this score is calculated by the underlaying `Apache Lucene` code and some pretty complicated formulas like [Similarity](https://lucene.apache.org/core/3_5_0/scoring.html#Understanding%20the%20Scoring%20Formula) and [Score Boosting](https://lucene.apache.org/core/3_5_0/scoring.html#Score%20Boosting) and some [Algorithms](https://lucene.apache.org/core/3_5_0/scoring.html#Algorithm) weighting, filtering and sorting the result for the given search parameters.

---

<div class="post-metadata">

### Author: ![zerothbase](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/e9bcb4/32.png) [@zerothbase](https://community.mp3tag.de/u/zerothbase)
#### Post date: [August 23, 2024, 11:06pm UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/6 "2024-08-23T23:06:28Z")

</div>

my apologies. I didn't see the score column when doing a search directly on the MB side, so i made a poor assumption.

> Blockquote  
> What would be the value that reduces the number of search results the most?

I think any would be fine. Whatever you think would be the most helpful to the most users? For me, # of tracks would be the most helpful since it gets rid of all the EPs or completely wrong items. However I can see some users wanting other ones, so i'm certainly not set on it.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 24, 2024, 9:23am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/7 "2024-08-24T09:23:37Z")

</div>

> [@zerothbase](#):
>
> For me, # of tracks would be the most helpful since it gets rid of all the EPs or completely wrong items.

I have created a variant of the existing "Search by Artist + Album" WSS with a 3rd search field. The number of selected files will be provided (and can be overwritten manually).  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/1/4/14a0226d740875791740754025a0cf138af25d83.png)

The MusicBrainz search now looks for releases with the given ARTIST, ALBUM and number of tracks and only returns results that match this number.  
This should also work for releases with more than 1 disc. For example, if you are looking for a release with 14 tracks on the first disc and 10 tracks on the second disc, this search should return matching releases with 24 tracks.  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/e/a/ea6c1bd4eea2cbf8bbfaa68ad4ef45467e6aa626.png)

[MusicBrainz expanded#Search by Artist + Album + Tracks.src](https://community.mp3tag.de/uploads/short-url/3kVmyYJR2FPA1A59Dmn4epdv022.src) (2,8 KB)  
-\> Hint: You also need at least the files `MusicBrainz expanded.inc` and `MusicBrainz expanded#Settings.settings` from my collection of "[MusicBrainz expanded](https://community.mp3tag.de/t/ws-musicbrainz-expanded/55909)" Web Sources scripts.

Please test it and let me know if it works for you as expected.

I will add this variant later (after your feedback) to my collection.

---

<div class="post-metadata">

### Author: ![zerothbase](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/e9bcb4/32.png) [@zerothbase](https://community.mp3tag.de/u/zerothbase)
#### Post date: [August 26, 2024, 7:29pm UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/8 "2024-08-26T19:29:15Z")

</div>

Works great! thank you so much.

---

<div class="post-metadata">

### Author: ![Casual\_Tea](https://community.mp3tag.de/user_avatar/community.mp3tag.de/casual_tea/32/18886_2.png) [@Casual\_Tea](https://community.mp3tag.de/u/Casual_Tea)
#### Post date: [August 27, 2024, 10:04am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/9 "2024-08-27T10:04:48Z")

</div>

It's a lovely addition if you want to find/match exactly the release that you have.  
However I sometimes find out that there is a better release with bonus tracks available while scrolling through the musicbrainz results while tagging, which I then hunt down and upgrade what I had. These "fortunate surprises" are lost by matching exactly. It's good to have it as an option tho.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [September 26, 2024, 10:05am UTC](https://community.mp3tag.de/t/beter-scoring-for-musicbrainz-search/65695/10 "2024-09-26T10:05:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
