-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added specific rescore exception, refactor code
Signed-off-by: Martin Gaievski <[email protected]>
- Loading branch information
1 parent
cc4afbf
commit 2afe82e
Showing
3 changed files
with
105 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...org/opensearch/neuralsearch/search/query/exception/HybridSearchRescoreQueryException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package org.opensearch.neuralsearch.search.query.exception; | ||
|
||
import org.opensearch.OpenSearchException; | ||
|
||
/** | ||
* Exception thrown when there is an issue with the hybrid search rescore query. | ||
*/ | ||
public class HybridSearchRescoreQueryException extends OpenSearchException { | ||
|
||
public HybridSearchRescoreQueryException(Throwable cause) { | ||
super("rescore failed for hybrid query", cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters