Description
Elasticsearch Version
Serverless
Installed Plugins
No response
Java Version
bundled
OS Version
N/A
Problem Description
Server error should instead be a bad request.
IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc.
org.elasticsearch.search.query.QueryPhaseExecutionException: Query Failed [Failed to execute main query] at [email protected]/org.elasticsearch.search.query.QueryPhase.addCollectorsAndSearch(QueryPhase.java:237) at [email protected]/org.elasticsearch.search.query.QueryPhase.executeQuery(QueryPhase.java:143) at [email protected]/org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:70) at [email protected]/org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:672) at [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:877) at [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$7(SearchService.java:710) at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79) at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76) at [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101) at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27) at [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:35) at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1044) at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619) at java.base/java.lang.Thread.run(Thread.java:1447) Caused by: java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=6092763, class org.apache.lucene.search.DisjunctionSumScorer at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.scoreChildDocs(ToParentBlockJoinQuery.java:445) at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.score(ToParentBlockJoinQuery.java:399) at [email protected]/org.apache.lucene.search.FilterScorable.score(FilterScorable.java:45) at [email protected]/org.apache.lucene.search.ConjunctionBulkScorer$1.score(ConjunctionBulkScorer.java:64) at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$Score.reset(ToParentBlockJoinQuery.java:308) at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinBulkScorer$1.collect(ToParentBlockJoinQuery.java:589) at [email protected]/org.apache.lucene.search.ConjunctionBulkScorer.score(ConjunctionBulkScorer.java:167) at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinBulkScorer.score(ToParentBlockJoinQuery.java:536) at [email protected]/org.elasticsearch.search.internal.CancellableBulkScorer.score(CancellableBulkScorer.java:46) at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.searchLeaf(ContextIndexSearcher.java:460) at [email protected]/org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:809) at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:387) at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.lambda$search$3(ContextIndexSearcher.java:365) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328) at [email protected]/org.apache.lucene.search.TaskExecutor$Task.run(TaskExecutor.java:173) at [email protected]/org.apache.lucene.search.TaskExecutor.lambda$invokeAll$1(TaskExecutor.java:98) ... 6 more
Steps to Reproduce
Found in serverless logs.
Logs (if relevant)
No response