Skip to content

Commit

Permalink
EPMRPP-82701 || Update Search configs and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski authored Feb 19, 2024
2 parents 458b67a + b299f80 commit efee579
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @author <a href="mailto:maksim_antonov@epam.com">Maksim Antonov</a>
*/
@Service
@ConditionalOnProperty(prefix = "rp.elasticsearch", name = "host")
@ConditionalOnProperty(prefix = "rp.searchengine", name = "host")
public class ElasticSearchClient {

public static final String INDEX_PREFIX = "logs-reportportal-";
Expand All @@ -44,9 +44,9 @@ public class ElasticSearchClient {
private final String host;
private final RestTemplate restTemplate;

public ElasticSearchClient(@Value("${rp.elasticsearch.host}") String host,
@Value("${rp.elasticsearch.username:}") String username,
@Value("${rp.elasticsearch.password:}") String password) {
public ElasticSearchClient(@Value("${rp.searchengine.host}") String host,
@Value("${rp.searchengine.username:}") String username,
@Value("${rp.searchengine.password:}") String password) {
restTemplate = new RestTemplate();

if (!username.isEmpty() && !password.isEmpty()) {
Expand Down

0 comments on commit efee579

Please sign in to comment.