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;
|
XContentParser innerHitsParser = null;
|
||||||
try {
|
try {
|
||||||
innerHitsParser = XContentFactory.xContent(source.innerHits()).createParser(source.innerHits());
|
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) {
|
} catch (Exception e) {
|
||||||
String sSource = "_na_";
|
String sSource = "_na_";
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue