fix inner_hits parsing in SearchService
This commit is contained in:
parent
4996b07205
commit
c93eeb88ca
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue