Skip to content
Advertisement

Tag: spring-data-elasticsearch

Elasticsearch stops working after I run the springboot Java program and elasticsearch transport node is not loading in my Java Program

Elasticsearch version 8.1.3 Java version 1.8 Im trying to connect elasticsearch with Java springboot program. My Elasticsearch works fine until I run the Java program, also my java program works fine but with “.d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{LsJSQJtCS56wr7IM_S0h4Q}{localhost}{127.0.0.1:9300}]” on springboot error. Also, as soon as I run my

Getting Exceptions while running a Spring boot app with elasticsearch

I was following this tutorial: https://www.youtube.com/watch?v=IiZZAu2Qtp0&ab_channel=LiliumCode and the only changes I made were that I was using maven with eclipse instead. The rest of the code is exactly the same. When I run the app I get: My elasticsearch.yml: I have tried out searching the exceptions online but nothing seems to work. Please help me in figuring this out. Thank

Connecting to ES with Spring Data Elasticsearch (reactive) gives error host not reachable

I’m running on an aws-elasticsearch (with OpenSearch 1.1.x) service and im trying to connect with it from a spring application using spring-data-elasticsearch, according to the doc i configured the bean as it says. on my local i used a ssh tunnel from my aws account. i used this command: so i can connect with OpenSearch dashboard over localhost in my

Spring data elasticsearch: Using @Document annotation on POJO interface class not working

I am migrating an application to the latest spring-boot version (using maven spring-boot-dependencies with version 2.5.4). I have an interface called Customer and I have two implementations of that interface (BusinessCustomer, PrivateCustomer) The three classes are annotated like that: For querying the index “customers” I used to have code like: But this is not working anymore. I get an error

Spring data elasticsearch query on multiple indices

I have multiple indices for every day in elasticsearch and I am using ElasticsearchRepository to query my documents. Documents definition: My index will create dynamically for every day with this definition My Repository definition: When I query by client no just returning current day values. Test failed. Current day values returned not searched all indices. Probably Spring data searching a

Advertisement