В Интернете я вижу, что spring-data-elasticsearch имеет некоторые свойства конфигурации, которые вы можете определить в своем application.properties, например:
spring.data.elasticsearch.repositories.enabled=true
spring.data.elasticsearch.cluster-nodes=localhost:9300
spring.data.elasticsearch.cluster-name=elasticsearch
elasticsearch.index.name=my_index
elasticsearch.user.type=user
Однако в IntelliJ я вижу, например, что:
spring.data.elasticsearch.cluster-nodes=localhost:9300
spring.data.elasticsearch.cluster-name=elasticsearch
... в настоящее время устарели. Однако я не могу найти в документации spring-data-elasticsearch ничего, что перечисляло бы доступные свойства или заменяло устаревшие.
Любая помощь приветствуется. Заранее спасибо!




Эти свойства взяты из spring-boot-starter-data-elasticsearch, а не из spring-data-elasticsearch.
Как предлагает @code_mechanic, в Справочная документация по загрузке Spring> Общие свойства приложения> Данные вы найдете свойства, доступные для версии Spring Boot Текущий. Вот некоторые свойства, связанные с Elasticsearch:
Key Default Value Description spring.data.elasticsearch.client.reactive.connection-timeout Connection timeout. spring.data.elasticsearch.client.reactive.endpoints Comma-separated list of the Elasticsearch endpoints to connect to. spring.data.elasticsearch.client.reactive.max-in-memory-size Limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated. spring.data.elasticsearch.client.reactive.password Credentials password. spring.data.elasticsearch.client.reactive.socket-timeout Read and Write Socket timeout. spring.data.elasticsearch.client.reactive.use-ssl falseWhether the client should use SSL to connect to the endpoints. spring.data.elasticsearch.client.reactive.username Credentials username. spring.data.elasticsearch.repositories.enabled trueWhether to enable Elasticsearch repositories. spring.elasticsearch.rest.connection-timeout 1sConnection timeout. spring.elasticsearch.rest.password Credentials password. spring.elasticsearch.rest.read-timeout 30sRead timeout. spring.elasticsearch.rest.uris [http://localhost:9200]Comma-separated list of the Elasticsearch instances to use. spring.elasticsearch.rest.username Credentials username.
Справочную документацию по предыдущим версиям Spring Boot можно найти в https://spring.io/projects/spring-boot#learn.
Возможно, вас также заинтересует Документация по Spring Boot> Возможности Spring Boot> Работа с Nosql Technologies> Elasticsearch, в котором описывается, как подключаться с использованием клиентов REST и реактивных клиентов REST, а также необходимые зависимости и свойства конфигурации.