New Elasticsearch Java Client: Getting Started, Usage, Examples & More

Поділитися
Вставка
  • Опубліковано 24 лют 2022
  • Elastic has recently released a new Java client for Elasticsearch, which is more lightweight than the previous High Level Rest Client while providing a more complete API coverage and an easier to use DSL-like experience.
    This talk will walk you through a few examples with this new client and its query DSL. It will also give you an overview of how it is developed, being the first of a new generation of Elasticsearch client libraries based on code generation.
    Speaker: Sylvain Wallez, Principal Software Engineer at Elastic.
    Get the new Java Client at: github.com/elastic/elasticsea...
    Questions? Ask us on discuss.elastic.co
    Connect with us in our Slack workspace: ela.st/slack
    #JavaClient #Elasticsearch #ElasticsearchJava #ElasticsearchTutorial
  • Наука та технологія

КОМЕНТАРІ • 17

  • @fredrikgustafson9829
    @fredrikgustafson9829 2 роки тому +3

    Thanks for a really nice overview of the new JavaClient. I just wish I had it some days ago :D. Looking forward to work more with the new client.

  • @benaya6
    @benaya6 2 роки тому +2

    Thank you so much for that. It helped me a lot to finally understand how it works.
    About the documentation requests- maybe even just publish an existing example repository, with minimal documentation could do the trick, until you have time for more documentation.
    Thanks again 🙏🙏💪

  • @rajeshraju8397
    @rajeshraju8397 Рік тому +2

    Can you add a video on migrating your existing HLRC code to new Java Api code? The GetRequest using Hlrc are totally different in documentation.

  • @_dinesh
    @_dinesh Рік тому

    Thank you for the great video. Is it possible to get the raw HTTP request from Java Client? For logging purposes.

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

    Many thanks Sylvain. I am trying to switch from high level rest client to this new client (Java). I tried a simple matchAll query as follows and I got 2 questions need your help:
    SearchResponse response = esClient.search(s -> s
    .index("publications")
    .query(q -> q
    .matchAll(t -> t.queryName(""))
    ),
    Publication.class
    );
    My first question is, Is the code " .matchAll(t -> t.queryName(""))" correct? (even it's working fine)
    Secondly, the query by default only returns the first 10 documents. How can I return the whole result list?
    It would be greatly appreciated if you could help me with the above questions.
    Thanks again

  • @saveriomirkoviola4365
    @saveriomirkoviola4365 Рік тому +1

    Hi, I have a question: how may I perform a delete or delete by query with new Java client? I haven't found anything in documentation...

  • @TheMoviemaker98
    @TheMoviemaker98 9 місяців тому +1

    Im sorry, but I just have a question. How do I construct a SearchResponse search when trying to search for terms? Where I search everything in a list? No official documentation regarding that

    • @Soundbreakr1
      @Soundbreakr1 4 місяці тому

      I had the same question but because they dont want you constructing generics they moved to a different approach using QueryField which takes in FieldValues. You can map an object to return these types. an example would be terms(t-> t.field(fn).terms(fvm-> fvm.value(myval string))

  • @chinmaydaf3864
    @chinmaydaf3864 10 місяців тому +1

    How can we delete a document using java api client? Any documentation will be helpful

  • @cugoman
    @cugoman Рік тому +2

    not enough examples or info on this yet unfortunatly. Might take a few years to be the real deal

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

    If you want to know how the new client is generated go to 15:34

  • @sureshchaudhari4465
    @sureshchaudhari4465 Рік тому

    BoolQuery how to create

    • @Soundbreakr1
      @Soundbreakr1 4 місяці тому

      There is no boolquery type just builder which you can get with queryBuilders.bool

  • @ramazanaktas748
    @ramazanaktas748 Рік тому

    Everybody is an engineer in here and there. Yet, no one can afford a decent microphone.