fix inner_hits parsing in SearchService

This commit is contained in:
Simon Willnauer 2015-09-23 22:05:16 +02:00
parent 4996b07205
commit c93eeb88ca
1 changed files with 2 additions and 1 deletions

View File

@ -842,7 +842,8 @@ public class SearchService extends AbstractLifecycleComponent<SearchService> {
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 {