How to connect a simple maven based standalone Java program to Elastic Search DB in 10 minutes
Вставка
- Опубліковано 2 лют 2021
- In this Tutorial we will learn how to connect a simple maven based standalone Java program to Elastic Search using Rest High level Client API provided by Elastic.
Referance blog:
simplifyingtechcode.wordpress...
Github Code link: github.com/Simplifying-Tech/J...
Earlier video :Install ElasticSearch Logstash and Kibana on Windows 10 - • How to Install and Con... - Наука та технологія
Thank you so much. That was really helpful!
How do you you use this api to search using a query in json format?
hii sir
could you please make a simple console based application which uses java (HLCA) and elasticsearch in which we can take input from user and can able to perform all the crud operations.
please reply me as soon as possible if it possible.
how to do this if xpack security is on?
In place of cluster name i.e. localhost ...... Can I give my elasticsearch endpoint?
I have a same question,how we can create resthighlevel client using api endpoint and also provide header values ?
can you provide source code link
Added in video description or you can find at-->github.com/Simplifying-Tech/JavaElasticSetup
Hi, can I ask a doubt?
Sure
@@simplifyingtech I'm getting some error like this Caused by: java.lang.UnsupportedClassVersionError: org/elasticsearch/index/query/QueryBuilder has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [org.elasticsearch.index.query.QueryBuilder])
DO you know what might be the reason?
@@sharonshelton1575 hmm good qus , so you are using Java 17 version (class file version 61.0), use JDK 8 (Java Runtime only recognizes class file versions up to 52.0 )to proceed further. this will solve your problem.
@@simplifyingtech I'm using JDK version 8. Dont know why this is happening. Were you using, jdk 8 as well?
Hmm tutorial is used jdk 8 only. check your eclipse or ide project using which version not use default version.. check in you java build path project..
That was a loud intro!