I've been trying to implement MusicCatalogSearchRequest with includeTopResults. It works. But topResults only returns 3 items. I tried with many different search terms and even compared the same search term with Apple Music app where it gives many more top results.
Below is my code
var searchRequest = MusicCatalogSearchRequest(term: searchTerm,
types: [
Song.self,
MusicVideo.self,
Album.self,
Playlist.self,
Curator.self,
RadioShow.self,
Artist.self
])
searchRequest.includeTopResults = true
searchResponse = try await searchRequest.response()
print(searchResponse?.topResults)
What should I do to get more relevant top results? Could this be a bug in iOS 16 Beta or is topResults restricted to 3 items in Musickit?
2
1
2.1k