From 38e1f30d70a04f7ecaaf5b5620e9ff54ca6f299e Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:42:02 -0800 Subject: [PATCH] Rename explanation response processor (#1085) (#1087) Signed-off-by: Martin Gaievski (cherry picked from commit b4cb267d1b7243fb0e96d2707ae5d0e50a7032c0) Co-authored-by: Martin Gaievski --- .../neuralsearch/processor/ExplanationResponseProcessor.java | 2 +- .../factory/ExplanationResponseProcessorFactoryTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/neuralsearch/processor/ExplanationResponseProcessor.java b/src/main/java/org/opensearch/neuralsearch/processor/ExplanationResponseProcessor.java index 01cdfcb0d..1cdd69b15 100644 --- a/src/main/java/org/opensearch/neuralsearch/processor/ExplanationResponseProcessor.java +++ b/src/main/java/org/opensearch/neuralsearch/processor/ExplanationResponseProcessor.java @@ -34,7 +34,7 @@ @AllArgsConstructor public class ExplanationResponseProcessor implements SearchResponseProcessor { - public static final String TYPE = "explanation_response_processor"; + public static final String TYPE = "hybrid_score_explanation"; private final String description; private final String tag; diff --git a/src/test/java/org/opensearch/neuralsearch/processor/factory/ExplanationResponseProcessorFactoryTests.java b/src/test/java/org/opensearch/neuralsearch/processor/factory/ExplanationResponseProcessorFactoryTests.java index 453cc471c..8f1dad626 100644 --- a/src/test/java/org/opensearch/neuralsearch/processor/factory/ExplanationResponseProcessorFactoryTests.java +++ b/src/test/java/org/opensearch/neuralsearch/processor/factory/ExplanationResponseProcessorFactoryTests.java @@ -104,7 +104,7 @@ private static void assertProcessor(SearchResponseProcessor responseProcessor, S assertNotNull(responseProcessor); assertTrue(responseProcessor instanceof ExplanationResponseProcessor); ExplanationResponseProcessor explanationResponseProcessor = (ExplanationResponseProcessor) responseProcessor; - assertEquals("explanation_response_processor", explanationResponseProcessor.getType()); + assertEquals("hybrid_score_explanation", explanationResponseProcessor.getType()); assertEquals(tag, explanationResponseProcessor.getTag()); assertEquals(description, explanationResponseProcessor.getDescription()); assertEquals(ignoreFailure, explanationResponseProcessor.isIgnoreFailure());