We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9514b commit 61fbf45Copy full SHA for 61fbf45
server/src/main/java/org/opensearch/search/approximate/ApproximateBooleanQuery.java
@@ -78,6 +78,9 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
78
79
// If the single clause is an ApproximateScoreQuery, set its context
80
if (clauseQuery instanceof ApproximateScoreQuery approximateQuery) {
81
+ if (approximateQuery.getApproximationQuery() instanceof ApproximateBooleanQuery nestedBool) {
82
+ return nestedBool.rewrite(indexSearcher);
83
+ }
84
return approximateQuery;
85
}
86
0 commit comments