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 ccfbf49 commit 84a7fb9Copy full SHA for 84a7fb9
server/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java
@@ -300,7 +300,7 @@ public static <E extends Exception> Query toQuery(
300
if (ignoreUnmapped) {
301
return new MatchNoDocsQuery();
302
} else {
303
- throw new IllegalStateException("[" + NAME + "] failed to find nested object under path [" + path + "]");
+ throw new QueryShardException(context, "[" + NAME + "] failed to find nested object under path [" + path + "]");
304
}
305
306
final BitSetProducer parentFilter;
0 commit comments