diff --git a/astra-db-java/pom.xml b/astra-db-java/pom.xml index ea399684..42110d37 100644 --- a/astra-db-java/pom.xml +++ b/astra-db-java/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 com.datastax.astra astra-db-java Java Client Library for Data API - 1.0.0-SNAPSHOT + 1.0.0-beta1 Implementation of a client to the Astra/Stargate Data API written in Java https://github.com/datastax/astra-db-java 2024 @@ -382,7 +380,7 @@ scm:git:git@github.com:datastax/astra-db-java.git scm:git:git@github.com:datastax/astra-db-java.git https://github.com/datastax/astra-db-java - 1.2.6 + 1.0.0-beta1 diff --git a/astra-db-java/src/test/java/com/datastax/astra/test/unit/DataApiOptionsTest.java b/astra-db-java/src/test/java/com/datastax/astra/test/unit/DataApiOptionsTest.java index 25d12627..7b51ff34 100644 --- a/astra-db-java/src/test/java/com/datastax/astra/test/unit/DataApiOptionsTest.java +++ b/astra-db-java/src/test/java/com/datastax/astra/test/unit/DataApiOptionsTest.java @@ -131,8 +131,8 @@ void shouldTestFindOneOptions() { assertThat(FindOneOptions.Builder.sort(Sorts.ascending("test"))).isNotNull(); assertThat(FindOneOptions.Builder.projection(Projections.include("ok"))).isNotNull(); assertThat(FindOneOptions.Builder.includeSimilarity()).isNotNull(); - assertThat(FindOneOptions.Builder.vector(new float[]{})).isNotNull(); - assertThat(FindOneOptions.Builder.vectorize("OK") + assertThat(FindOneOptions.Builder.sort(new float[]{})).isNotNull(); + assertThat(FindOneOptions.Builder.sort("OK") .sort(Sorts.ascending("test")) .includeSimilarity() .projection(Projections.include("ok")) diff --git a/examples/pom.xml b/examples/pom.xml index e2047518..89ec30cc 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -19,7 +19,7 @@ com.datastax.astra astra-db-java - ${project.version} + 1.0.0-beta1 diff --git a/examples/src/main/java/com/datastax/astra/client/collection/FindOne.java b/examples/src/main/java/com/datastax/astra/client/collection/FindOne.java index 9a800136..eaf51877 100644 --- a/examples/src/main/java/com/datastax/astra/client/collection/FindOne.java +++ b/examples/src/main/java/com/datastax/astra/client/collection/FindOne.java @@ -13,7 +13,7 @@ import static com.datastax.astra.client.model.Filters.eq; import static com.datastax.astra.client.model.Filters.gt; import static com.datastax.astra.client.model.Filters.lt; -import static com.datastax.astra.client.model.FindOneOptions.Builder.vector; +import static com.datastax.astra.client.model.FindOneOptions.Builder.sort; import static com.datastax.astra.client.model.Projections.exclude; import static com.datastax.astra.client.model.Projections.include; @@ -41,7 +41,7 @@ public static void main(String[] args) { gt("field2", 10), lt("field3", 20), eq("field4", "value")), - vector(new float[] {0.25f, 0.25f, 0.25f,0.25f, 0.25f}) + sort(new float[] {0.25f, 0.25f, 0.25f,0.25f, 0.25f}) .projection(include("field", "field2", "field3")) .projection(exclude("_id")) .includeSimilarity() diff --git a/tools/pom.xml b/tools/pom.xml index 01d4c90a..209f5732 100644 --- a/tools/pom.xml +++ b/tools/pom.xml @@ -19,7 +19,7 @@ com.datastax.astra astra-db-java - ${project.version} + 1.0.0-beta1