From 983eb3cedcd773d60f6520e0d281f32240c3049e Mon Sep 17 00:00:00 2001 From: Fabrizio Fortino Date: Tue, 23 Jan 2024 01:36:55 +0100 Subject: [PATCH] Dependencies: Update Elasticsearch to 8.12.0 (#639) --- build.sbt | 4 ++-- client-python/requirements.txt | 2 +- docker/Dockerfile | 2 +- docs/pages/installation.md | 4 ++-- .../elastiknn/query/HashingQueryPerformanceSuite.scala | 4 ++-- version | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.sbt b/build.sbt index a08016036..a86fadce0 100644 --- a/build.sbt +++ b/build.sbt @@ -4,10 +4,10 @@ import org.typelevel.scalacoptions.* Global / scalaVersion := "2.13.12" lazy val CirceVersion = "0.14.3" -lazy val ElasticsearchVersion = "8.11.4" +lazy val ElasticsearchVersion = "8.12.0" lazy val Elastic4sVersion = "8.11.5" lazy val ElastiknnVersion = IO.read(file("version")).strip() -lazy val LuceneVersion = "9.8.0" +lazy val LuceneVersion = "9.9.1" lazy val TestSettings = Seq( Test / parallelExecution := false, diff --git a/client-python/requirements.txt b/client-python/requirements.txt index c94f1b901..dde770450 100644 --- a/client-python/requirements.txt +++ b/client-python/requirements.txt @@ -1,3 +1,3 @@ -elasticsearch==8.11.1 +elasticsearch==8.12.0 tqdm==4.61.1 scipy==1.10.1 diff --git a/docker/Dockerfile b/docker/Dockerfile index 69acaf751..c9e4bac0c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,3 @@ -FROM docker.elastic.co/elasticsearch/elasticsearch:8.11.4 +FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0 COPY elastiknn-plugin/target/elastiknn*.zip . RUN elasticsearch-plugin install -b file:$(ls elastiknn*zip | sort | tail -n1) diff --git a/docs/pages/installation.md b/docs/pages/installation.md index cdc5c57d9..11f41095d 100644 --- a/docs/pages/installation.md +++ b/docs/pages/installation.md @@ -42,8 +42,8 @@ Make a Dockerfile like below. The image version (`elasticsearch:A.B.C`) must match the plugin's version (e.g. `A.B.C.x/elastiknn-A.B.C.x`). ```docker -FROM docker.elastic.co/elasticsearch/elasticsearch:8.11.4 -RUN elasticsearch-plugin install --batch https://github.com/alexklibisz/elastiknn/releases/download/8.11.4.0/elastiknn-8.11.4.0.zip +FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.0 +RUN elasticsearch-plugin install --batch https://github.com/alexklibisz/elastiknn/releases/download/8.12.0.0/elastiknn-8.12.0.0.zip ``` Build and run the Dockerfile. If you have any issues please refer to the [official docs.](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) diff --git a/elastiknn-plugin/src/test/scala/com/klibisz/elastiknn/query/HashingQueryPerformanceSuite.scala b/elastiknn-plugin/src/test/scala/com/klibisz/elastiknn/query/HashingQueryPerformanceSuite.scala index 2fbf9d2fe..430a6dddc 100644 --- a/elastiknn-plugin/src/test/scala/com/klibisz/elastiknn/query/HashingQueryPerformanceSuite.scala +++ b/elastiknn-plugin/src/test/scala/com/klibisz/elastiknn/query/HashingQueryPerformanceSuite.scala @@ -4,7 +4,7 @@ import com.klibisz.elastiknn.api.Vec import com.klibisz.elastiknn.models.{ExactSimilarityFunction, L2LshModel} import com.klibisz.elastiknn.lucene.{HashFieldType, LuceneSupport} import com.klibisz.elastiknn.vectors.PanamaFloatVectorOps -import org.apache.lucene.codecs.lucene95.Lucene95Codec +import org.apache.lucene.codecs.lucene99.Lucene99Codec import org.apache.lucene.document.Document import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers @@ -22,7 +22,7 @@ class HashingQueryPerformanceSuite extends AnyFunSuite with Matchers with Lucene // Thread.sleep(1000) // } - class BenchmarkCodec extends Lucene95Codec + class BenchmarkCodec extends Lucene99Codec test("indexing and searching on scale of GloVe-25") { implicit val rng: Random = new Random(0) diff --git a/version b/version index d5162ab43..530d933a4 100644 --- a/version +++ b/version @@ -1 +1 @@ -8.11.4.0 \ No newline at end of file +8.12.0.0 \ No newline at end of file