diff --git a/core/src/main/java/org/elasticsearch/search/SearchService.java b/core/src/main/java/org/elasticsearch/search/SearchService.java index 1e3d15bb692..d5ae3f4e0c0 100644 --- a/core/src/main/java/org/elasticsearch/search/SearchService.java +++ b/core/src/main/java/org/elasticsearch/search/SearchService.java @@ -842,7 +842,8 @@ public class SearchService extends AbstractLifecycleComponent { XContentParser innerHitsParser = null; try { innerHitsParser = XContentFactory.xContent(source.innerHits()).createParser(source.innerHits()); - this.elementParsers.get("highlight").parse(innerHitsParser, context); + innerHitsParser.nextToken(); + this.elementParsers.get("inner_hits").parse(innerHitsParser, context); } catch (Exception e) { String sSource = "_na_"; try {