Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Fix bug with ES Index and Postgres Index DAOs colliding #191

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.retry.backoff.FixedBackOffPolicy;
import org.springframework.retry.support.RetryTemplate;

Expand Down Expand Up @@ -78,6 +79,7 @@ public RestClientBuilder restClientBuilder(ElasticSearchProperties properties) {
return builder;
}

@Primary // If you are including this project, it's assumed you want ES to be your indexing mechanism
@Bean
public IndexDAO es7IndexDAO(
RestClientBuilder restClientBuilder,
Expand Down