Skip to content

Commit

Permalink
Rename explanation response processor (#1085) (#1087)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit b4cb267)

Co-authored-by: Martin Gaievski <[email protected]>
  • Loading branch information
1 parent 452db42 commit 38e1f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 38e1f30

Please sign in to comment.