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());