Skip to content

Commit

Permalink
Switch album interactor to elasticsearch index
Browse files Browse the repository at this point in the history
  • Loading branch information
shedrachokonofua committed Jul 21, 2024
1 parent 2a9e6d9 commit be1f206
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{
albums::{
album_interactor::AlbumInteractor, album_repository::AlbumRepository,
album_search_index::AlbumSearchIndex, redis_album_search_index::RedisAlbumSearchIndex,
album_search_index::AlbumSearchIndex, es_album_search_index::EsAlbumSearchIndex,
},
artists::artist_interactor::ArtistInteractor,
crawler::crawler::Crawler,
Expand Down Expand Up @@ -83,10 +83,7 @@ impl ApplicationContext {
Arc::clone(&settings),
Arc::clone(&kv),
));
let album_search_index = Arc::new(RedisAlbumSearchIndex::new(
Arc::clone(&redis_connection_pool),
Arc::clone(&embedding_provider_interactor),
));
let album_search_index = Arc::new(EsAlbumSearchIndex::new(Arc::clone(&elasticsearch_client)));
let spotify_client = Arc::new(SpotifyClient::new(
&settings.spotify.clone(),
Arc::clone(&kv),
Expand Down

0 comments on commit be1f206

Please sign in to comment.