simplify: search by country instead of subdivision in Lucene
MB Lucene is literal text match only - no hierarchy. Searching by subdivision (England, California) misses most artists. Now search directly by country: tag:"heavy metal" AND area:"United Kingdom". Scoring handles regional relevance.
This commit is contained in:
2 files changed
+16
-29
No files matched your search
@@ -8982,9 +8982,9 @@ pub async fn v2_discover_artists_by_location(
|
||||
match search_result {
|
||||
Ok(response) => {
|
||||
log::info!(
|
||||
"[V2] tag:'{}' + area:'{}' returned {} artists",
|
||||
"[V2] tag:'{}' + country:'{}' returned {} artists",
|
||||
genre,
|
||||
search_name,
|
||||
country.as_deref().unwrap_or(&search_name),
|
||||
response.artists.len()
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user