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...
  • Наука та технологія

КОМЕНТАРІ • 18

  • @gladwinrojer273
    @gladwinrojer273 3 роки тому +1

    Thank you so much. That was really helpful!

  • @RacoonEvil
    @RacoonEvil 2 роки тому

    How do you you use this api to search using a query in json format?

  • @ashwiniborla3207
    @ashwiniborla3207 2 роки тому

    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.

  • @kshitijdhande8028
    @kshitijdhande8028 2 роки тому

    how to do this if xpack security is on?

  • @sumitsinha1506
    @sumitsinha1506 2 роки тому

    In place of cluster name i.e. localhost ...... Can I give my elasticsearch endpoint?

    • @rohitrajkot
      @rohitrajkot 2 роки тому

      I have a same question,how we can create resthighlevel client using api endpoint and also provide header values ?

  • @sravankumar6415
    @sravankumar6415 3 роки тому

    can you provide source code link

    • @simplifyingtech
      @simplifyingtech  3 роки тому

      Added in video description or you can find at-->github.com/Simplifying-Tech/JavaElasticSetup

  • @sharonshelton1575
    @sharonshelton1575 2 роки тому +1

    Hi, can I ask a doubt?

    • @simplifyingtech
      @simplifyingtech  2 роки тому +1

      Sure

    • @sharonshelton1575
      @sharonshelton1575 2 роки тому +1

      @@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?

    • @simplifyingtech
      @simplifyingtech  2 роки тому +1

      @@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.

    • @sharonshelton1575
      @sharonshelton1575 2 роки тому +1

      @@simplifyingtech I'm using JDK version 8. Dont know why this is happening. Were you using, jdk 8 as well?

    • @simplifyingtech
      @simplifyingtech  2 роки тому

      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..

  • @putinscat1208
    @putinscat1208 2 роки тому

    That was a loud intro!