From 9d83684565e246fcb981c8f3d1047cd75dc8cfdd Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Thu, 8 Feb 2024 17:39:54 -0600 Subject: [PATCH] add key in pojo for vector result --- .../dispensers/KnnSearchOpDispenser.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java b/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java index a5e79a125..7aa67bbad 100644 --- a/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java +++ b/adapter-aws-opensearch/src/main/java/io/nosqlbench/adapter/opensearch/dispensers/KnnSearchOpDispenser.java @@ -64,23 +64,23 @@ public class KnnSearchOpDispenser extends BaseOpenSearchOpDispenser { } public static class Doc { - private float[] values; + private float[] value; private String key; public Doc() {} - public Doc(float[] values, String key) { - this.values = values; + public Doc(float[] value, String key) { + this.value = value; this.key = key; } - public float[] getValues() { - return values; + public float[] getValue() { + return value; } - public void setValues(float[] values) { - this.values = values; + public void setValue(float[] value) { + this.value = value; } @Override public String toString() { - return "{" + "values=" + values + "}"; + return "{" + "values=" + value + "}"; } public String getKey() {