feat: fuzzy search with parallel DB/MusicBrainz execution
- Add pg_trgm fuzzy search to PostgreSQL artist repository - Add Lucene fuzzy query (~0.7) for MusicBrainz artist search - Run DB and MusicBrainz searches in parallel goroutines - Cache MusicBrainz results to DB for accumulation - Deduplicate results by external ID - Filter out special purpose artists (type=Other) - Add SaveAll method for batch artist inserts - Move database schema to containers repo
This commit is contained in:
@@ -25,6 +25,10 @@ func (r *noopArtistRepo) Save(ctx context.Context, artist *domain.Artist) error
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *noopArtistRepo) SaveAll(ctx context.Context, artists []domain.Artist) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type noopAlbumRepo struct{}
|
||||
|
||||
func (r *noopAlbumRepo) GetByID(ctx context.Context, id string) (*domain.Album, error) {
|
||||
|
||||
Reference in New Issue
Block a user