New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Elasticsearch: update to new Java API #499
Comments
I'm aware of this but it's currently low prio as less than 1% of the installations uses Elastic. |
Thanks for the feedback. As a workaround, we did:
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
@Configuration
@ConditionalOnProperty(prefix = "org.jobrunr.job-scheduler", name = "enabled", havingValue = "true", matchIfMissing = true)
class JobRunrConfig {
@Bean
@SuppressWarnings("deprecated")
RestHighLevelClient restHighLevelClient(final RestClient client) {
return new RestHighLevelClientBuilder(client).build();
}
} |
We currently use Quartz along with a postgres database. We already have Elasticsearch to store the majority of our data. By switching from Quartz to JobRunr, we can get rid of quartz and the postgresql database. |
I must confess that Elastic currently is not used by many installations in production - Most people use Postgres. |
Completely understandable, Elasticsearch is rarely used as the main datastore. |
Solved in branch 6.4. |
Elasticsearch Rest High Level Client is deprecated in favor of:
https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/7.17/index.html
There is still the possibility to have both clients inside a single application:
https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/7.17/migrate-hlrc.html
Still, would be better to migrate to the new client which is the standard for Elasticsearch 8.x.x as well.
The text was updated successfully, but these errors were encountered: