From 47a39a0cbbc29c29adfa7fbb80fc3be0d6593ce9 Mon Sep 17 00:00:00 2001 From: Martin Gaievski Date: Thu, 9 Jan 2025 11:48:20 -0800 Subject: [PATCH] Rename explanation response processor Signed-off-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());