{"repo":"lambdaworks/zio-elasticsearch","free":true,"listed":false,"github":"https://github.com/lambdaworks/zio-elasticsearch","clone":"git clone https://github.com/lambdaworks/zio-elasticsearch.git","description":"ZIO Elasticsearch is a type-safe and streaming-friendly ZIO native Elasticsearch client.","language":"Scala","stars":65,"topics":["zio","elasticsearch"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"![scala-version][scala-version-badge] ZIO Elasticsearch Overview ZIO Elasticsearch is a type-safe and streaming-friendly ZIO native Elasticsearch client. The library depends on sttp as an HTTP client for executing requests, and other ZIO libraries such as ZIO Schema and ZIO Prelude. The following versions are supported: - Scala: 2.12, 2.13 and 3 - ZIO: 2 - Elasticsearch: 7, 8 - JVM 17+ Installation To use ZIO Elasticsearch in your project, add the following line to your build.sbt file: Usage In order to execute an Elasticsearch request we can rely on the Elasticsearch layer which offers an execute method accepting an ElasticRequest . In order to build the Elasticsearch layer we need to provide the following layers: - ElasticExecutor : if you provide ElasticExecutor.local , it will run on localhost:9200 . Otherwise, if you want to use ElasticExecutor.live , you must also provide ElasticConfig . - HttpClientZioBackend Type-safety with ZIO Prelude's Newtype The library uses ZIO Prelude's Newtype for IndexName , DocumentId and Routing in order to preserve type-safety. Usage of ZIO Schema and its accessors for type-safety To provide type-safety in your Elasticsearch requests, ZIO Elasticsearch uses ZIO Schema. Here is an example of creating a schema for the custom type User and using an implicit schema to create accessors that result in type-safe requests. Fluent API ZIO Elastic requests and queries offer a fluent API, allowing us to provide optional parameters in chained method c","default_branch":null,"files":null,"tree":[],"storefront":"/r/lambdaworks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lambdaworks/zio-elasticsearch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}