Как настроить Elasticsearch с Spring Data Rest - PullRequest
0 голосов
/ 14 июня 2019

Я настроил упругий поиск в приложении весны. Я получаю эту ошибку

failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{HDL7B1PCRyGKjqp98KTGZw}{localhost}{127.0.0.1:9300}]

Я не видел ни одной статьи или видео в Интернете, чтобы сделать что-то подобное. Вот мои настройки

application.props

spring.data.elasticsearch.cluster-nodes=localhost:9300
server.port=8086

1012 * объект *

@Document(indexName = "items", type = "items")
public class Item {

    @Id
    private Integer id;
    private Integer customerId;
    private Integer sku;
    private Integer quantity;
    private String message;

зависимость

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
    </dependency>
</dependencies>

Не могли бы вы понять, что я делаю не так?

...