{"id":17130303,"url":"https://github.com/aparo/elasticsearch-7.x-cookbook","last_synced_at":"2025-04-13T07:24:51.978Z","repository":{"id":45534730,"uuid":"154943252","full_name":"aparo/elasticsearch-7.x-cookbook","owner":"aparo","description":"Code for the Book - ElasticSearch 7.x Cookbook","archived":false,"fork":false,"pushed_at":"2022-11-16T11:45:05.000Z","size":8973,"stargazers_count":17,"open_issues_count":6,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T23:35:25.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aparo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-27T08:37:50.000Z","updated_at":"2024-07-30T09:46:28.000Z","dependencies_parsed_at":"2023-01-22T01:45:19.139Z","dependency_job_id":null,"html_url":"https://github.com/aparo/elasticsearch-7.x-cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Felasticsearch-7.x-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Felasticsearch-7.x-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Felasticsearch-7.x-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Felasticsearch-7.x-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aparo","download_url":"https://codeload.github.com/aparo/elasticsearch-7.x-cookbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248676884,"owners_count":21143996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T19:12:02.954Z","updated_at":"2025-04-13T07:24:51.885Z","avatar_url":"https://github.com/aparo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elasticsearch-7.x-cookbook\nCode for the Book - ElasticSearch 7.x Cookbook\n\n## Changelog\n\n2019/09/14 \n            Upgrade docker to 7.3.1\n\n            Upgrade Elastic4s to 7.3.1 version.\n\n## Refactory of Elastic4s 7.x\nElastic4s was not released for 7.x during book writing. During 7.x Elastic4s had a code refactory. Main changes are:\n\n\n### Moving imports \n\nImports are changed and moved from \n\n```\nimport com.sksamuel.elastic4s.http.ElasticDsl._\n```\nto\n```\nimport com.sksamuel.elastic4s.ElasticDsl._\n```\n\n### Different clients\n\nTo use the Elasticsearch Client you need to use the following entry in build.sbt\n\n```\n\"com.sksamuel.elastic4s\" %% \"elastic4s-client-esjava\" % elastic4sV\n```\n\nThere are different cleints. You must provide one during initialization. \nThe initialization should change from:\n```\n  lazy val client = ElasticClient(\n    ElasticProperties(s\"http://localhost:9200\")\n  )\n\n```\nto \n```\n  import com.sksamuel.elastic4s.http._\n  lazy val client = ElasticClient(\n    JavaClient(ElasticProperties(s\"http://localhost:9200\"))\n  )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faparo%2Felasticsearch-7.x-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faparo%2Felasticsearch-7.x-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faparo%2Felasticsearch-7.x-cookbook/lists"}