From 028978a6f56fce4b34beb643f2cc02a7f126df47 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Wed, 2 Oct 2024 13:40:53 -0700 Subject: [PATCH] --- glide-core/src/client/value_conversion.rs | 4 ++-- .../java/glide/api/commands/VectorSearchBaseCommands.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glide-core/src/client/value_conversion.rs b/glide-core/src/client/value_conversion.rs index 4fcd5830e4..e89c92adbe 100644 --- a/glide-core/src/client/value_conversion.rs +++ b/glide-core/src/client/value_conversion.rs @@ -922,8 +922,8 @@ pub(crate) fn convert_to_expected_type( Value::Array(ref array) if array.len() == 1 => Ok(value), Value::Array(mut array) => { Ok(Value::Array(vec![ - array[0].clone(), - convert_to_expected_type(Value::Array(array.split_off(1)), Some(ExpectedReturnType::Map { + array.remove(0), + convert_to_expected_type(Value::Array(array), Some(ExpectedReturnType::Map { key_type: &Some(ExpectedReturnType::BulkString), value_type: &Some(ExpectedReturnType::Map { key_type: &Some(ExpectedReturnType::BulkString), diff --git a/java/client/src/main/java/glide/api/commands/VectorSearchBaseCommands.java b/java/client/src/main/java/glide/api/commands/VectorSearchBaseCommands.java index e74f983923..b3390cdef5 100644 --- a/java/client/src/main/java/glide/api/commands/VectorSearchBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/VectorSearchBaseCommands.java @@ -43,7 +43,7 @@ CompletableFuture ftcreate( * @param options The search options - see {@link FTSearchOptions}. * @return A two element array, where first element is count of documents in result set, and the * second element, which has format - * {@literal Map>} - a mapping between + * {@literal Map>}, is a mapping between * document names and map of their attributes.
* If {@link FTSearchOptionsBuilder#count()} or {@link FTSearchOptionsBuilder#limit(int, int)} * with values 0, 0 is set, the command returns array with only one element - the