[ReactiveElasticsearchTemplate] port defaults to 9200 even when it's not wanted
See original GitHub issueHello, Today I was playing with this project. I was testing standard template where everything seems to work and also reactive where I had a problem like described on this SO question. The problem is that we are not using port at all, or at least our url to the elastic doesn’t have the port and it’s working with standard client. When I test the same url in reactive template then I had an error where the port 9200 was appended to the end.
Can somebody please clarify what is the configuration for ReactiveElasticsearchTemplate
when the url doesn’t contain port?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Defaulting to port 9200 #669 - elastic/elasticsearch-ruby
Per the spec of RFC 3986, when the optional port is not included, the default port for the scheme should be used. Therefore,...
Read more >Elasticsearch: How to know HTTP port number used when ...
Defaults to 9200 -9300. Let's say that Elasticsearch automatically selects the port 9202 because the 9200 is already in use. How does a...
Read more >Spring Data Elasticsearch - Reference Documentation
If the repository infrastructure does not find a declared query for the method at bootstrap time, it fails. CREATE_IF_NOT_FOUND (the default) ...
Read more >What are ports 9200 and 9300 used for? - Elastic Discuss
This is an extension on an older thread - Elasticsearch port 9200 or 9300?] By default, Elasticsearch uses two ports to listen to...
Read more >A Quick Guide to Elasticsearch with Spring Data and Spring ...
The Java API Client is not listed as a supported client yet. In the meantime, the Java Transport Client is still supported in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Spring Data Elasticsearch does not use - as well as the other Spring Data modules - configuration entries.
These configuration entries and the whole autoconfiguration stuff is part of Spring Boot. Spring Boot uses these entries to configure Spring Data Elasticsearch, so you would probably need to address this issue with the boot team.
@sothawo sorry for bothering, but wasn’t there plan to reuse the configuration uris
spring.elasticsearch.rest.uris
for autoconfiguration of reactive rest template? It shouldn’t be that hard to parse those informations from URL.