Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Elasticsearch 8.x #384

Merged
merged 3 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
matrix:
java: [ "11", "17" ]
scala: [ "2.12.18", "2.13.12", "3.3.1" ]
elasticsearch: ["7.x", "8.x"]
steps:
- name: Checkout current branch
uses: actions/[email protected]
Expand All @@ -54,7 +55,7 @@ jobs:
- name: Run tests
run: ./sbt ++${{ matrix.scala }}! library/test
- name: Run test container
run: docker-compose -f docker-compose.yml up -d
run: docker-compose -f docker/elasticsearch-${{ matrix.elasticsearch }}.yml up -d
- name: Run integration tests
run: ./sbt ++${{ matrix.scala }}! integration/test

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The library depends on sttp as an HTTP client for executing requests, and other
The following versions are supported:
- Scala: 2.12, 2.13 and 3
- ZIO: 2
- Elasticsearch: 7
- Elasticsearch: 7, 8
- JVM 11+

## Installation
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions docker/elasticsearch-8.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.8'

services:
elasticsearch:
image: elasticsearch:8.12.0
container_name: zio-elasticsearch-8-test
ports:
- "9200:9200"
environment:
discovery.type: "single-node"
xpack.security.enabled: "false"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
2 changes: 1 addition & 1 deletion docs/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ The library depends on sttp as an HTTP client for executing requests, and other
The following versions are supported:
- Scala: 2.12, 2.13 and 3
- ZIO: 2
- Elasticsearch: 7
- Elasticsearch: 7, 8
- JVM 11+
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import zio.json.{DeriveJsonDecoder, JsonDecoder, jsonField}
private[elasticsearch] final case class Hit(
@jsonField("_index")
index: String,
@jsonField("_type")
`type`: String,
@jsonField("_id")
id: String,
@jsonField("_score")
Expand Down