From 5b90fb31456dd8570dec6d3ab42ea96efefde880 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:58:09 +1300 Subject: [PATCH] Update TextEmbeddingProcessor.java (#1127) (#1215) * Update TextEmbeddingProcessor.java change type * Add changelog entry --------- (cherry picked from commit 28e8b89030b18f88c4007845c85624af6e276de7) Signed-off-by: leeeeeeeeeeehc Signed-off-by: Thomas Farr Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: Thomas Farr --- CHANGELOG.md | 1 + .../client/opensearch/ingest/TextEmbeddingProcessor.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23ae246a63..57d3fd71b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Fixed - Fix queries not preserving boost and name when converted to builders ([#1181](https://github.com/opensearch-project/opensearch-java/pull/1181)) - Remove required check on ShardStats.shards ([#1177](https://github.com/opensearch-project/opensearch-java/pull/1177)) +- Fixed `TextEmbeddingProcessor` returning the wrong processor kind ([#1127](https://github.com/opensearch-project/opensearch-java/pull/1127)) ### Security diff --git a/java-client/src/main/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessor.java b/java-client/src/main/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessor.java index 09a114cdeb..0f610a8cd4 100644 --- a/java-client/src/main/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessor.java +++ b/java-client/src/main/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessor.java @@ -51,7 +51,7 @@ public static TextEmbeddingProcessor of(Function